mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Some deprecations, normalize.css, torrent file content sort fix.
This commit is contained in:
parent
78080dea32
commit
0eb7faeed7
8 changed files with 455 additions and 17 deletions
|
@ -264,8 +264,7 @@ function file_write($str, $file, $max_size = LOG_MAX_SIZE, $lock = true, $replac
|
|||
$old_name = $file;
|
||||
$ext = '';
|
||||
if (preg_match('#^(.+)(\.[^\\\/]+)$#', $file, $matches)) {
|
||||
$old_name = $matches[1];
|
||||
$ext = $matches[2];
|
||||
list($old_name, $ext) = $matches;
|
||||
}
|
||||
$new_name = $old_name . '_[old]_' . date('Y-m-d_H-i-s_') . getmypid() . $ext;
|
||||
clearstatcache();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue