Merge "OOUI prefs: Use late static binding"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 11 May 2018 17:18:08 +0000 (17:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 11 May 2018 17:18:08 +0000 (17:18 +0000)
includes/specials/SpecialPreferences.php

index f67fe9f..1cfcffa 100644 (file)
@@ -36,8 +36,6 @@ class SpecialPreferences extends SpecialPage {
 
        function __construct() {
                parent::__construct( 'Preferences' );
-
-               $this->oouiEnabled = self::isOouiEnabled( $this->getContext() );
        }
 
        /**
@@ -56,6 +54,8 @@ class SpecialPreferences extends SpecialPage {
        }
 
        public function execute( $par ) {
+               $this->oouiEnabled = static::isOouiEnabled( $this->getContext() );
+
                $this->setHeaders();
                $this->outputHeader();
                $out = $this->getOutput();