From b04f3d33fec544775e7506846e1e626faceb1376 Mon Sep 17 00:00:00 2001 From: Pavel Astakhov Date: Sun, 1 Sep 2024 19:44:33 +0500 Subject: [PATCH] Improve getMediawikiSettings.php to bypass the SetupAfterCache hook --- _sources/canasta/getMediawikiSettings.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_sources/canasta/getMediawikiSettings.php b/_sources/canasta/getMediawikiSettings.php index 472d82b3..a01c13bf 100644 --- a/_sources/canasta/getMediawikiSettings.php +++ b/_sources/canasta/getMediawikiSettings.php @@ -148,10 +148,11 @@ public function finalSetup( SettingsBuilder $settingsBuilder = null ) { global $wgShowExceptionDetails, $wgHooks; $wgShowExceptionDetails = true; - $wgHooks['SetupAfterCache'][] = function () { + $wgHooks['SetupAfterCache'] = [ function () { global $wgExtensionFunctions; $wgExtensionFunctions = []; - }; + return false; + } ]; } private static function getExtensionsThings() {