Index: trunk/kernel/include/category.php =================================================================== diff -u -N -r3154 -r3162 --- trunk/kernel/include/category.php (.../category.php) (revision 3154) +++ trunk/kernel/include/category.php (.../category.php) (revision 3162) @@ -42,7 +42,14 @@ { $not_allowed = Array(' ', '\\', '/', ':', '*', '?', '"', '<', '>', '|'); $string = str_replace($not_allowed, '_', $string); - return preg_replace('/(_+)/', '_', $string); + $string = preg_replace('/(_+)/', '_', $string); + + while( preg_match('/(.*)_([\d]+)$/', $string, $rets) ) + { + $string = $rets[1]; + } + + return $string; } function GenerateFilename()