From abb97ffc2eafe31ae593effc43d42b12bc678121 Mon Sep 17 00:00:00 2001 From: nashe Date: Fri, 7 Jul 2017 18:29:17 +0200 Subject: Coding style (fixes #91 ) --- install.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install.php') diff --git a/install.php b/install.php index d1a8ba5..bdab378 100755 --- a/install.php +++ b/install.php @@ -9,8 +9,8 @@ function installStatus($str, $msg, $result) { } // If the config file exists and the auth variables are set, moonmoon is already installed -include dirname(__FILE__) . '/admin/inc/pwd.inc.php'; -if (file_exists(dirname(__FILE__) . '/custom/config.yml') && isset($login) && isset($password)) { +include __DIR__ . '/admin/inc/pwd.inc.php'; +if (file_exists(__DIR__ . '/custom/config.yml') && isset($login) && isset($password)) { $status = 'installed'; } elseif (isset($_REQUEST['url'])) { $save = array(); @@ -59,7 +59,7 @@ if (file_exists(dirname(__FILE__) . '/custom/config.yml') && isset($login) && is // We now test that all required files and directories are writable. foreach ($tests as $v) { - if(touch(dirname(__FILE__) . $v)) { + if(touch(__DIR__ . $v)) { $strInstall .= installStatus("$v is writable", 'OK', true); } else { $strInstall .= installStatus("$v is writable", 'FAIL',false); -- cgit v1.2.1