Page MenuHomeIn-Portal Phabricator

D85.diff
No OneTemporary

File Metadata

Created
Sat, Apr 19, 5:46 PM

D85.diff

Index: branches/5.2.x/core/kernel/utility/unit_config_reader.php
===================================================================
--- branches/5.2.x/core/kernel/utility/unit_config_reader.php
+++ branches/5.2.x/core/kernel/utility/unit_config_reader.php
@@ -137,6 +137,11 @@
}
$this->Application->cacheManager->applyDelayedUnitProcessing();
+
+ if ( !$this->Application->InitDone && $cache ) {
+ // Allow hooks to modify "m:QueryString" before URL parsing is started during cold start.
+ $this->runAfterConfigRead('m');
+ }
}
function findConfigFiles($folderPath, $level = 0)
@@ -799,9 +804,9 @@
$file = $this->prefixFiles[$prefix];
$prefix = $this->PreloadConfigFile($file);
- if ($this->FinalStage) {
- // run prefix OnAfterConfigRead so all
- // hooks to it can define their clonses
+ if ( $this->FinalStage || $prefix == 'm' ) {
+ // Run prefix OnAfterConfigRead so all hooks to it can define their clones.
+ // Allow hooks to modify "m:QueryString" before URL parsing is started during warm start.
$this->runAfterConfigRead($prefix);
}
@@ -1016,4 +1021,4 @@
}
}
-}
\ No newline at end of file
+}

Event Timeline