From 0c1810be10061d3b75e25f1ff98d6ca35e89119b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 2 Jun 2013 18:35:03 +0200 Subject: [PATCH] Fixed variable name --- wcfsetup/install.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } } } -- 2.20.1