Skip to content

Commit a9074e3

Browse files
Lets try using native wikifarm support for ManageWiki
1 parent 755be96 commit a9074e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

initialise/MirahezeFunctions.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,12 @@ public static function getCacheArray(): array {
525525
* @return array
526526
*/
527527
public static function getConfigGlobals(): array {
528-
global $wgConf;
528+
/*global $wgConf;
529529
530530
$wgConf->settings = array_merge(
531531
$wgConf->settings,
532532
self::getManageWikiConfigCache()
533-
);
533+
);*/
534534

535535
return self::getConfigForCaching();
536536
}
@@ -1072,7 +1072,7 @@ public static function onManageWikiCoreFormSubmission( $context, $dbName, $dbw,
10721072
}
10731073

10741074
public static function onMediaWikiServices() {
1075-
if ( isset( $GLOBALS['globals'] ) ) {
1075+
/*if ( isset( $GLOBALS['globals'] ) ) {
10761076
foreach ( $GLOBALS['globals'] as $global => $value ) {
10771077
if ( !isset( $GLOBALS['wgConf']->settings["+$global"] ) &&
10781078
$global !== 'wgManageWikiPermissionsAdditionalRights'
@@ -1083,6 +1083,6 @@ public static function onMediaWikiServices() {
10831083
10841084
// Don't need a global here
10851085
unset( $GLOBALS['globals'] );
1086-
}
1086+
}*/
10871087
}
10881088
}

0 commit comments

Comments
 (0)