Index: trunk/core/units/general/helpers/mod_rewrite_helper.php =================================================================== diff -u -N -r7391 -r7635 --- trunk/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 7391) +++ trunk/core/units/general/helpers/mod_rewrite_helper.php (.../mod_rewrite_helper.php) (revision 7635) @@ -74,7 +74,7 @@ { $category_path = trim($category_path.'/'.$url_part, '/'); - if( preg_match('/(.*)_([\d]+)$/', $category_path, $rets) ) + if( !preg_match('/^bb_[\d]+/', $url_part) && preg_match('/(.*)_([\d]+)$/', $category_path, $rets) ) { $category_path = $rets[1]; $vars['m_cat_page'] = $rets[2]; @@ -303,9 +303,9 @@ $sql = 'SELECT CategoryId FROM '.TABLE_PREFIX.'Category WHERE - NamedParentPath = '.$this->Conn->qstr($template_path).' + LOWER(NamedParentPath) = '.$this->Conn->qstr($template_path).' AND - Status = 1'; + Status IN (1,4) '; $template_found = $this->Conn->GetRow($sql); if ($template_found) { @@ -385,7 +385,7 @@ } $vars = array(); - $url_parts = $url ? explode('/', $url) : Array(); + $url_parts = $url ? explode('/', trim($url, '/')) : Array(); $process_module = true; if($this->HTTPQuery->Get('rewrite') == 'on' || !$url_parts)