(bug 25832) query=allimages now outputs ns/title as well
[lhc/web/wiklou.git] / includes / api / ApiFeedWatchlist.php
index f572ae6..1d6b22c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * API for MediaWiki 1.8+
+ *
  *
  * Created on Oct 13, 2006
  *
@@ -143,7 +143,7 @@ class ApiFeedWatchlist extends ApiBase {
        private function createFeedItem( $info ) {
                $titleStr = $info['title'];
                $title = Title::newFromText( $titleStr );
-               if ( $this->linkToDiffs and isset( $info['revid'] ) ) {
+               if ( $this->linkToDiffs && isset( $info['revid'] ) ) {
                        $titleUrl = $title->getFullURL( array( 'diff' => $info['revid'] ) );
                } else {
                        $titleUrl = $title->getFullURL();
@@ -189,7 +189,7 @@ class ApiFeedWatchlist extends ApiBase {
                        'allrev'     => 'Include multiple revisions of the same page within given timeframe',
                        'wlowner'    => "The user whose watchlist you want (must be accompanied by {$this->getModulePrefix()}token if it's not you)",
                        'wltoken'    => 'Security token that requested user set in their preferences',
-                       'linktodiffs'      => 'Link to change differences instead of article pages'
+                       'linktodiffs' => 'Link to change differences instead of article pages'
                );
        }