Index: branches/5.3.x/core/kernel/managers/url_processor.php =================================================================== diff -u -N -r15698 -r16171 --- branches/5.3.x/core/kernel/managers/url_processor.php (.../url_processor.php) (revision 15698) +++ branches/5.3.x/core/kernel/managers/url_processor.php (.../url_processor.php) (revision 16171) @@ -1,6 +1,6 @@ Application->getUnitConfig($prefix_only)->getRewritePriority(0); + + if ( isset($this->Application->routers[$prefix_only]) ) { + $sorted[$prefix] = (int)$this->Application->routers[$prefix_only]['priority']; + } + else { + $sorted[$prefix] = 0; + } } asort($sorted, SORT_NUMERIC); @@ -124,4 +130,4 @@ * @access protected */ abstract protected function BuildModuleEnv($prefix_special, &$params, $pass_events = false); -} \ No newline at end of file +}