X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMWNamespace.php;h=4a911b08192d40dab0c0065e4a50d26cae2a554a;hb=d788b4e884216b2828499dfdd29414c299f5a9bc;hp=0121bd589ceec7e541e030df07215bb98be3ed16;hpb=a4777729dd2dd66c871395bdb04f5f6dce75dd94;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MWNamespace.php b/includes/MWNamespace.php index 0121bd589c..4a911b0819 100644 --- a/includes/MWNamespace.php +++ b/includes/MWNamespace.php @@ -318,8 +318,9 @@ class MWNamespace { * @return array */ public static function getRestrictionLevels( $index, User $user = null ) { - return MediaWikiServices::getInstance()->getNamespaceInfo()-> - getRestrictionLevels( $index, $user ); + return MediaWikiServices::getInstance() + ->getPermissionManager() + ->getNamespaceRestrictionLevels( $index, $user ); } /**