X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRandompage.php;h=c4ea005a5525f65f3a60e5d655191d50402acd0a;hb=37e011b5554dd9b2966ccfdbef9a9bc8309a233f;hp=7e5a73fb0881e718295d2794336ce33c6e73891a;hpb=4e021bb8d4741d5af0f02942fe3c33a19e7fabca;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRandompage.php b/includes/specials/SpecialRandompage.php index 7e5a73fb08..c4ea005a55 100644 --- a/includes/specials/SpecialRandompage.php +++ b/includes/specials/SpecialRandompage.php @@ -35,7 +35,8 @@ class RandomPage extends SpecialPage { protected $extra = []; // Extra SQL statements public function __construct( $name = 'Randompage' ) { - $this->namespaces = MWNamespace::getContentNamespaces(); + $this->namespaces = MediaWikiServices::getInstance()->getNamespaceInfo()-> + getContentNamespaces(); parent::__construct( $name ); }