X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FMWNamespace.php;h=4a911b08192d40dab0c0065e4a50d26cae2a554a;hb=6d5d0c9fb78cb3d436051640af6bd4e8db574512;hp=1529473a9281301e870b9d1db4dc7bc2fb3ae0c0;hpb=36d9784b156ea4d906b73c8ae30f8ae2513e9a86;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/MWNamespace.php b/includes/MWNamespace.php index 1529473a92..4a911b0819 100644 --- a/includes/MWNamespace.php +++ b/includes/MWNamespace.php @@ -176,19 +176,6 @@ class MWNamespace { return MediaWikiServices::getInstance()->getNamespaceInfo()->getValidNamespaces(); } - /** - * Does this namespace ever have a talk namespace? - * - * @deprecated since 1.30, use hasTalkNamespace() instead. - * - * @param int $index Namespace index - * @return bool True if this namespace either is or has a corresponding talk namespace. - */ - public static function canTalk( $index ) { - wfDeprecated( __METHOD__, '1.30' ); - return self::hasTalkNamespace( $index ); - } - /** * Does this namespace ever have a talk namespace? * @@ -331,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 ); } /**