Some deprecations, normalize.css, torrent file content sort fix.

This commit is contained in:
Yuriy Pikhtarev 2017-07-30 11:25:57 +03:00
commit 0eb7faeed7
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
8 changed files with 455 additions and 17 deletions

View file

@ -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();