Index: branches/unlabeled/unlabeled-1.51.2/kernel/include/modules.php =================================================================== diff -u -r6235 -r6308 --- branches/unlabeled/unlabeled-1.51.2/kernel/include/modules.php (.../modules.php) (revision 6235) +++ branches/unlabeled/unlabeled-1.51.2/kernel/include/modules.php (.../modules.php) (revision 6308) @@ -226,6 +226,15 @@ if ( substr($t, 0, strlen('kernel4:') ) == 'kernel4:' ) $t = substr($t, strlen('kernel4:') ); $url_params = Array('t' => $t); + // sicne 1.3.0 the category is not passed by default when mod_rewrite is on + // enable pass category for module templates (they usually need it) and suggest_cat. + // platform templates usually do not need category + if ( + preg_match('/^inlink|^inbulletin|^innews/', $t) || + in_array(preg_replace('/\.tpl$/', '', $t), array('suggest_cat')) + ) { + $url_params['pass_category'] = 1; + } $app =& kApplication::Instance(); $app->SetVar('prefixes_passed', Array() );