From: jeroendedauw Date: Wed, 18 Apr 2012 10:51:40 +0000 (+0200) Subject: fix return value X-Git-Tag: 1.31.0-rc.0~22097^2^2~237 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=80e44ab9af257d0abda190586779617723a0fae2;p=lhc%2Fweb%2Fwiklou.git fix return value Change-Id: Ic6b664b3bb90e98781e2e6e8a5f2db3280181ea3 --- diff --git a/includes/Content.php b/includes/Content.php index b696e29dc3..5855100b0a 100644 --- a/includes/Content.php +++ b/includes/Content.php @@ -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 ) ; diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 17ce936aa2..3088131a1a 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -448,7 +448,7 @@ class WikiPage extends Page { if ( $this->mLastRevision ) { return $this->mLastRevision->getContent( $audience ); } - return false; + return null; } /**