Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847796
D85.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Apr 19, 5:46 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Apr 20, 5:46 PM (18 m, 32 s)
Engine
blob
Format
Raw Data
Handle
602587
Attached To
D85: INP-1439 - Fire "m:OnAfterConfigRead" event during Url Processing
D85.diff
View Options
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
Log In to Comment