Prevent inconstitent /data/trafic_limiter.php due to file read while writing

(cherry picked from commit 71a7f6adaea9a86a84fa8ebbcb9e5c506a785527)

Conflicts:
	index.php
pull/17/head
jeldrik 11 years ago committed by El RIDO
parent 5b54ca34ad
commit 4f72f04eda

@ -105,7 +105,7 @@ abstract class persistence
{
self::_initialize();
$file = self::$_path . '/' . $filename;
file_put_contents($file, $data);
file_put_contents($file, $data, LOCK_EX);
chmod($file, 0705);
return $file;
}

Loading…
Cancel
Save