Index: branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php =================================================================== diff -u -r5763 -r5770 --- branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5763) +++ branches/unlabeled/unlabeled-1.155.2/core/kernel/application.php (.../application.php) (revision 5770) @@ -686,11 +686,11 @@ } //eval("?".">".$this->HTML); - + if ($this->isDebugMode()) { $this->EventManager->RunRegularEvents(reAFTER); $this->Session->SaveData(); - + $this->HTML = ob_get_clean() . $this->HTML . $this->Debugger->printReport(true); } else { @@ -1172,7 +1172,7 @@ foreach($pass_info as $pass_index => $pass_element) { list($prefix) = explode('.', $pass_element); - $require_rewrite = $this->findModule('Var', $prefix); + $require_rewrite = $this->findModule('Var', $prefix) && $this->getUnitOption($prefix, 'CatalogItem'); if ($require_rewrite) { // if next prefix is same as current, but with special => exclude current prefix from url $next_prefix = getArrayValue($pass_info, $pass_index + 1); @@ -1440,7 +1440,7 @@ } } } - + ob_end_flush(); $this->Session->SaveData(); exit;