From: Alexander Ebert Date: Sun, 2 Jun 2013 16:35:03 +0000 (+0200) Subject: Fixed variable name X-Git-Tag: 2.0.0_Beta_3~38 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c1810be10061d3b75e25f1ff98d6ca35e89119b;p=GitHub%2FWoltLab%2FWCF.git Fixed variable name --- diff --git a/wcfsetup/install.php b/wcfsetup/install.php index 001752b5e7..21a79c6e35 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -313,21 +313,21 @@ class BasicFileUtil { else { self::$mode = 0666; - $filename = '__permissions_'.sha1(time()).'.txt'; - @touch($filename); + $tmpFilename = '__permissions_'.sha1(time()).'.txt'; + @touch($tmpFilename); // create a new file and check the file owner, if it is the same // as this file (uploaded through FTP), we can safely grant write // permissions exclusively to the owner rather than everyone - if (file_exists($filename)) { + if (file_exists($tmpFilename)) { $scriptOwner = fileowner(__FILE__); - $fileOwner = fileowner($filename); + $fileOwner = fileowner($tmpFilename); if ($scriptOwner === $fileOwner) { self::$mode = 0644; } - @unlink($filename); + @unlink($tmpFilename); } } }