Index: trunk/core/kernel/application.php
===================================================================
diff -u -r3214 -r3215
--- trunk/core/kernel/application.php (.../application.php) (revision 3214)
+++ trunk/core/kernel/application.php (.../application.php) (revision 3215)
@@ -169,7 +169,7 @@
{
$GLOBALS['debugger']->appendMemoryUsage('Application before Init:');
}
-
+
if( !$this->isDebugMode() && !constOn('DBG_ZEND_PRESENT') )
{
error_reporting(0);
Index: trunk/core/kernel/utility/debugger.php
===================================================================
diff -u -r3210 -r3215
--- trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 3210)
+++ trunk/core/kernel/utility/debugger.php (.../debugger.php) (revision 3215)
@@ -12,7 +12,7 @@
if(!defined($const_name)) define($const_name,$const_value);
}
- unset($_REQUEST['debug_host']); // this var messed up whole detection stuff :(
+ unset($_REQUEST['debug_host'], $_REQUEST['debug_fastfile']); // this var messed up whole detection stuff :(
// Detect fact, that this session beeing debugged by Zend Studio
foreach($_REQUEST as $rq_name=>$rq_value)
Index: trunk/core/kernel/utility/http_query.php
===================================================================
diff -u -r3214 -r3215
--- trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 3214)
+++ trunk/core/kernel/utility/http_query.php (.../http_query.php) (revision 3215)
@@ -132,20 +132,6 @@
case 'G':
$this->Get = $this->AddVars($_GET);
$this->processQueryString();
- if( $this->Application->RewriteURLs() )
- {
- if( $this->Application->isDebugMode() )
- {
- $this->Application->Debugger->profileStart('url_parsing', 'Parsing MOD_REWRITE url');
- $this->processRewriteURL();
- $this->Application->Debugger->profileFinish('url_parsing');
- }
- else
- {
- $this->processRewriteURL();
- }
-
- }
break;
case 'P':
@@ -171,6 +157,21 @@
break;
}
}
+
+ if( $this->Application->RewriteURLs() )
+ {
+ if( $this->Application->isDebugMode() )
+ {
+ $this->Application->Debugger->profileStart('url_parsing', 'Parsing MOD_REWRITE url');
+ $this->processRewriteURL();
+ $this->Application->Debugger->profileFinish('url_parsing');
+ }
+ else
+ {
+ $this->processRewriteURL();
+ }
+
+ }
}
function convertFiles()
@@ -390,11 +391,22 @@
}
// match module
- if($url_part)
+ $next_template = $this->Get('next_template');
+ if($url_part || $next_template)
{
+ if($next_template)
+ {
+ $next_template_parts = explode('/', $next_template);
+ $module_folder = array_shift($next_template_parts);
+ }
+ else
+ {
+ $module_folder = $url_part;
+ }
+
foreach ($this->Application->ModuleInfo as $module_name => $module_data)
{
- if( trim($module_data['TemplatePath'], '/') == $url_part )
+ if( trim($module_data['TemplatePath'], '/') == $module_folder )
{
$module_prefix = $module_data['Var'];
break;