X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPageLanguage.php;h=79b2444ea9d058fdc37015187dafbb006ed6cc7e;hb=1e209d1e74cf2c0f5f78a3ca8014fc0af9d7f0a5;hp=2acf23cdcbdd8311ef84fe993ab9a1b1c73a44d1;hpb=ca28853e225fb8c3a2715c6f5bcc558d9e482590;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPageLanguage.php b/includes/specials/SpecialPageLanguage.php index 2acf23cdcb..79b2444ea9 100644 --- a/includes/specials/SpecialPageLanguage.php +++ b/includes/specials/SpecialPageLanguage.php @@ -90,10 +90,12 @@ class SpecialPageLanguage extends FormSpecialPage { return $this->showLogFragment( $this->par ); } + protected function getDisplayFormat() { + return 'vform'; + } + public function alterForm( HTMLForm $form ) { - $form->setDisplayFormat( 'vform' ); - $form->setWrapperLegend( false ); - wfRunHooks( 'LanguageSelector', array( $this->getOutput(), 'mw-languageselector' ) ); + Hooks::run( 'LanguageSelector', array( $this->getOutput(), 'mw-languageselector' ) ); } /**