* Removed getSelectOptions, which did nothing other than send FOR UPDATE on some...
[lhc/web/wiklou.git] / includes / Feed.php
index 5593601..0ca419e 100644 (file)
@@ -99,9 +99,9 @@ class FeedItem {
         * @param $uniqueId String: unique id for the item
         * @param $RSSisPermalink Boolean: set to true if the guid (unique id) is a permalink (RSS feeds only)
         */
-       public function setUniqueId($uniqueId, $RSSisPermalink = False) {
+       public function setUniqueId($uniqueId, $RSSisPermalink = false) {
                $this->UniqueId = $uniqueId;
-               $this->RSSIsPermalink = $isPermalink;
+               $this->RSSIsPermalink = $RSSisPermalink;
        }
 
        /**
@@ -137,8 +137,8 @@ class FeedItem {
         * @return String
         */
        public function getLanguage() {
-               global $wgContLanguageCode;
-               return $wgContLanguageCode;
+               global $wgLanguageCode;
+               return $wgLanguageCode;
        }
 
        /**
@@ -305,7 +305,7 @@ class RSSFeed extends ChannelFeed {
                <item>
                        <title><?php print $item->getTitle() ?></title>
                        <link><?php print $item->getUrl() ?></link>
-                       <guid<?php if( $item->RSSIsPermalink ) print ' isPermaLink="true"' ?>><?php print $item->getUniqueId() ?></guid>
+                       <guid<?php if( !$item->RSSIsPermalink ) print ' isPermaLink="false"' ?>><?php print $item->getUniqueId() ?></guid>
                        <description><?php print $item->getDescription() ?></description>
                        <?php if( $item->getDate() ) { ?><pubDate><?php print $this->formatTime( $item->getDate() ) ?></pubDate><?php } ?>
                        <?php if( $item->getAuthor() ) { ?><dc:creator><?php print $item->getAuthor() ?></dc:creator><?php }?>