X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsite%2FMediaWikiSite.php;h=e1e7ce69cffe38f85e57e53eaef735e333efd263;hb=c1afba8ccfe12bd69d13937ee87fce0d2a80fd03;hp=0ff7e8bad486c794992fe2c8c9c2d022207d1e2d;hpb=e9edf8e6ac3ef0b31b5d68957bdf1e40fb7e5012;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/MediaWikiSite.php b/includes/site/MediaWikiSite.php index 0ff7e8bad4..e1e7ce69cf 100644 --- a/includes/site/MediaWikiSite.php +++ b/includes/site/MediaWikiSite.php @@ -65,6 +65,7 @@ class MediaWikiSite extends Site { * Returns the normalized form of the given page title, using the * normalization rules of the given site. If the given title is a redirect, * the redirect will be resolved and the redirect target is returned. + * Only titles of existing pages will be returned. * * @note This actually makes an API request to the remote site, so beware * that this function is slow and depends on an external service. @@ -79,7 +80,9 @@ class MediaWikiSite extends Site { * * @param string $pageName * - * @return string|false + * @return string|false The normalized form of the title, + * or false to indicate an invalid title, a missing page, + * or some other kind of error. * @throws MWException */ public function normalizePageName( $pageName ) {