summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-07-07 18:29:17 +0200
committernashe <thomas@chauchefoin.fr>2017-07-07 18:29:17 +0200
commitabb97ffc2eafe31ae593effc43d42b12bc678121 (patch)
tree7c052e920d1823f357bf3431f46cf517a2e928b5
parent27d7abc52c59b5311af8738a5e76d2ca059bd3ff (diff)
downloadplanet-abb97ffc2eafe31ae593effc43d42b12bc678121.tar
planet-abb97ffc2eafe31ae593effc43d42b12bc678121.tar.gz
planet-abb97ffc2eafe31ae593effc43d42b12bc678121.tar.bz2
planet-abb97ffc2eafe31ae593effc43d42b12bc678121.tar.xz
planet-abb97ffc2eafe31ae593effc43d42b12bc678121.zip
Coding style (fixes #91 )
-rwxr-xr-xinstall.php6
1 files changed, 3 insertions, 3 deletions
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("<code>$v</code> is writable", 'OK', true);
} else {
$strInstall .= installStatus("<code>$v</code> is writable", 'FAIL',false);