mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
parent
5ad5ecba29
commit
4eb7884f29
@ -189,7 +189,7 @@ function file_write ($str, $file, $max_size = LOG_MAX_SIZE, $lock = true, $repla
|
|||||||
if ($max_size && @filesize($file) >= $max_size)
|
if ($max_size && @filesize($file) >= $max_size)
|
||||||
{
|
{
|
||||||
$old_name = $file; $ext = '';
|
$old_name = $file; $ext = '';
|
||||||
if (preg_match('#^(.+)(\.[^\\/]+)$#', $file, $matches))
|
if (preg_match('#^(.+)(\.[^\\\/]+)$#', $file, $matches))
|
||||||
{
|
{
|
||||||
$old_name = $matches[1]; $ext = $matches[2];
|
$old_name = $matches[1]; $ext = $matches[2];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user