Commit b889edb3 authored by Falko Timme's avatar Falko Timme
Browse files

- Ported changes from Apache plugin to nginx plugin.

- Fixed errors in system.inc.php-
parent 317b4d0d
...@@ -673,7 +673,7 @@ class system{ ...@@ -673,7 +673,7 @@ class system{
$app->log("Action aborted, file is a symlink: $filename",LOGLEVEL_WARN); $app->log("Action aborted, file is a symlink: $filename",LOGLEVEL_WARN);
return false; return false;
} }
return file_put_contents($filename, $data); return file_get_contents($filename, $data);
} }
function rename($filename, $new_filename, $allow_symlink = false) { function rename($filename, $new_filename, $allow_symlink = false) {
...@@ -700,7 +700,7 @@ class system{ ...@@ -700,7 +700,7 @@ class system{
} }
function unlink($filename) { function unlink($filename) {
if(file_exists($filename)) { if(file_exists($filename) || is_link($filename)) {
return unlink($filename); return unlink($filename);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment