From 508080f1f37fe1ddc4777278ff3660326695a2ea Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 11 May 2018 09:55:59 +0100 Subject: [PATCH] OOUI prefs: Use late static binding Allow sub-classes to disable OOUI for now (e.g. GlobalPrefs). Change-Id: Ic3ff878b5f0ba7ec4162fab09fe1b9e10a820095 --- includes/specials/SpecialPreferences.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1