X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2FTitle.php;h=3dd37d71788a554b3d645b417fdc794130caa45c;hb=7dd1914e734ccd7c2842bb2e18bf4866a4ecbf63;hp=f291a69b9e8d276b302b9138841af939f686df07;hpb=d5ff621d43b195c41c141288fb8d2b05793b55f4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Title.php b/includes/Title.php index f291a69b9e..3dd37d7178 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -4553,10 +4553,10 @@ class Title implements LinkTarget { * @return bool */ public function canUseNoindex() { - global $wgContentNamespaces, $wgExemptFromUserRobotsControl; + global $wgExemptFromUserRobotsControl; $bannedNamespaces = is_null( $wgExemptFromUserRobotsControl ) - ? $wgContentNamespaces + ? MWNamespace::getContentNamespaces() : $wgExemptFromUserRobotsControl; return !in_array( $this->mNamespace, $bannedNamespaces );