diff options
Diffstat (limited to 'includes/MWNamespace.php')
-rw-r--r-- | includes/MWNamespace.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/MWNamespace.php b/includes/MWNamespace.php index 0121bd589cee..4a911b08192d 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 ); } /** |