fix return value
authorjeroendedauw <jeroendedauw@gmail.com>
Wed, 18 Apr 2012 10:51:40 +0000 (12:51 +0200)
committerjeroendedauw <jeroendedauw@gmail.com>
Wed, 18 Apr 2012 10:51:40 +0000 (12:51 +0200)
Change-Id: Ic6b664b3bb90e98781e2e6e8a5f2db3280181ea3

includes/Content.php
includes/WikiPage.php

index b696e29..5855100 100644 (file)
@@ -212,7 +212,7 @@ abstract class Content {
      * return $this. That is,  $copy === $original may be true, but only for imutable content
      * objects.
      *
-     * @return a copy of this Content object
+     * @return Content. A copy of this object
      */
     public abstract function copy( );
 
@@ -222,6 +222,7 @@ abstract class Content {
      *
      * @param $hasLinks Bool: if it is known whether this content contains links, provide this information here,
      *                        to avoid redundant parsing to find out.
+        * @return boolean
      */
     public abstract function isCountable( $hasLinks = null ) ;
 
index 17ce936..3088131 100644 (file)
@@ -448,7 +448,7 @@ class WikiPage extends Page {
         if ( $this->mLastRevision ) {
             return $this->mLastRevision->getContent( $audience );
         }
-        return false;
+        return null;
     }
 
        /**