Permalink
Browse files

WS fixes (trailing WS)

  • Loading branch information...
1 parent d101398 commit 260f1e0dbcf2216eb4807c6b0c59cfcc60b82676 @winks committed Mar 28, 2012
@@ -99,7 +99,7 @@
$oStopwords->remove($stopwordId);
}
break;
-
+
case 'save_stop_word':
if (null != $stopword && PMF_Language::isASupportedLanguage($stopwordsLang)) {
$oStopwords = PMF_Stopwords::getInstance($faqConfig);
@@ -107,7 +107,7 @@
if (is_array($records)) {
foreach ($records as $item) {
-
+
$link = str_replace($_SERVER['SCRIPT_NAME'], '/index.php', $item['record_link']);
if (PMF_RSS_USE_SEO) {
@@ -121,11 +121,11 @@
$rss->startElement('item');
$rss->writeElement('title', html_entity_decode($item['record_title'] .
' (' . $item['visits'] . ' '.$PMF_LANG['msgViews'].')', ENT_COMPAT, 'UTF-8'));
-
+
$rss->startElement('description');
$rss->writeCdata($item['record_preview']);
$rss->endElement();
-
+
$rss->writeElement('link', $faqConfig->get('main.referenceURL') . $link);
$rss->writeElement('pubDate', PMF_Date::createRFC822Date($item['record_date'], true));
@@ -126,7 +126,7 @@
$rss->startElement('description');
$rss->writeCdata($content);
$rss->endElement();
-
+
$rss->writeElement('link', $faqConfig->get('main.referenceURL') . $link);
$rss->writeElement('pubDate', PMF_Date::createRFC822Date($item['datum'], true));
$rss->endElement();
@@ -84,7 +84,7 @@
$rss->startElement('description');
$rss->writeCdata($item['content']);
$rss->endElement();
-
+
$rss->writeElement('link', $faqConfig->get('main.referenceURL').$link);
$rss->writeElement('pubDate', PMF_Date::createRFC822Date($item['date'], true));
$rss->endElement();
@@ -72,11 +72,11 @@
$rss->startElement('item');
$rss->writeElement('title', PMF_Utils::makeShorterText(html_entity_decode($item['question'], ENT_COMPAT, 'UTF-8'), 8) .
" (".$item['username'].")");
-
+
$rss->startElement('description');
$rss->writeCdata($item['question']);
$rss->endElement();
-
+
$rss->writeElement('link', (isset($_SERVER['HTTPS']) ? 's' : '')."://".$_SERVER["HTTP_HOST"].str_replace("feed/openquestions/rss.php", "index.php", $_SERVER['SCRIPT_NAME'])."?action=open#openq_".$item['id']);
$rss->writeElement('pubDate', PMF_Date::createRFC822Date($item['created'], true));
$rss->endElement();
@@ -122,11 +122,11 @@
$rss->startElement('item');
$rss->writeElement('title', PMF_Utils::makeShorterText(html_entity_decode($item['thema'], ENT_COMPAT, 'UTF-8'), 8) .
" (".$item['visits']." ".$PMF_LANG['msgViews'].")");
-
+
$rss->startElement('description');
$rss->writeCdata("[".$i.".] ".$item['thema']." (".$item['visits']." ".$PMF_LANG['msgViews'].")");
$rss->endElement();
-
+
$rss->writeElement('link', $faqConfig->get('main.referenceURL').$link);
$rss->writeElement('pubDate', PMF_Date::createRFC822Date($item['last_visit'], false));
$rss->endElement();
@@ -28,32 +28,32 @@
* @since 2009-09-13
* @copyright 2009 phpMyFAQ Team
*/
-class PMF_Helper_Http extends PMF_Helper
+class PMF_Helper_Http extends PMF_Helper
{
/**
* Instance
*
* @var PMF_Helper_Http
*/
private static $instance = null;
-
+
/**
* Content type
*
* @var string
*/
private $contentType = '';
-
+
/**
* Constructor
*
- * @return
+ * @return
*/
private function __construct()
{
-
+
}
-
+
/**
* Returns the single instance
*
@@ -68,15 +68,15 @@ public static function getInstance()
}
return self::$instance;
}
-
+
/**
* __clone() Magic method to prevent cloning
*
* @return void
*/
private function __clone()
{
-
+
}
/**
@@ -106,7 +106,7 @@ public function addHeader()
header('Vary: Negotiate,Accept');
header('Content-type: ' . $this->contentType);
}
-
+
/**
* Returns a 404 header
*
View
@@ -9,7 +9,7 @@
* obtain one at http://mozilla.org/MPL/2.0/.
*
* @category phpMyFAQ
- * @package Frontend
+ * @package Frontend
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @author Peter Beauvain <pbeauvain@web.de>
* @author Olivier Plathey <olivier@fpdf.org>
@@ -18,7 +18,7 @@
* @copyright 2003-2012 phpMyFAQ Team
* @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
* @link http://www.phpmyfaq.de
- * @since 2003-02-12
+ * @since 2003-02-12
*/
define('IS_VALID_PHPMYFAQ', null);

0 comments on commit 260f1e0

Please sign in to comment.