I've just commented these lines of code, for now:
@Connie: don't know, on my localhost seems to work well and on another linux server too..
Code:
if (file_exists($file)) {
$count = 1;
$file = NMPOSTPATH . "$slug-$count.xml";
while (file_exists($file))
$file = NMPOSTPATH . "$slug-" . ++$count . '.xml';
$slug = basename($file, '.xml');
}
@Connie: don't know, on my localhost seems to work well and on another linux server too..