From: Ed Sanders Date: Fri, 11 May 2018 08:55:59 +0000 (+0100) Subject: OOUI prefs: Use late static binding X-Git-Tag: 1.34.0-rc.0~5445^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=508080f1f37fe1ddc4777278ff3660326695a2ea;p=lhc%2Fweb%2Fwiklou.git OOUI prefs: Use late static binding Allow sub-classes to disable OOUI for now (e.g. GlobalPrefs). Change-Id: Ic3ff878b5f0ba7ec4162fab09fe1b9e10a820095 --- diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index f67fe9f757..1cfcffa85d 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -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();