X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fsite%2FSite.php;h=401f6e48292d051d82a92fee307ec841a813d71f;hb=72e141a5e33417a3f4bcb18cf8a862634bda9bee;hp=bcf8b32b88adc639d0ab18c8b9f22a9b9752a921;hpb=f2d3caf5bcab177c872d5290ac5354bbf1f0967c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/Site.php b/includes/site/Site.php index bcf8b32b88..401f6e4829 100644 --- a/includes/site/Site.php +++ b/includes/site/Site.php @@ -354,7 +354,7 @@ class Site implements Serializable { /** * Returns the full URL for the given page on the site. - * Or false if the needed information is not known. + * Or null if the needed information is not known. * * This generated URL is usually based upon the path returned by getLinkPath(), * but this is not a requirement. @@ -365,13 +365,13 @@ class Site implements Serializable { * * @param bool|string $pageName * - * @return string|bool + * @return string|null */ public function getPageUrl( $pageName = false ) { $url = $this->getLinkPath(); - if ( $url === false ) { - return false; + if ( $url === null ) { + return null; } if ( $pageName !== false ) {