From 0ea079d604ef1f34cc47646ab23176a3c66f16ee Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 13 Oct 2014 14:41:55 +0200 Subject: dirname(__FILE__) -> __DIR__ --- bin/cleandb.sh | 2 +- bin/decrypt.sh | 2 +- bin/deluser.sh | 2 +- bin/dumpschema.sh | 2 +- bin/exportgettext.sh | 2 +- bin/gc.sh | 2 +- bin/importgettext.sh | 2 +- bin/indexcontacts.sh | 2 +- bin/installto.sh | 2 +- bin/moduserprefs.sh | 2 +- bin/msgexport.sh | 2 +- bin/msgimport.sh | 2 +- bin/update.sh | 2 +- bin/updatecss.sh | 2 +- bin/updatedb.sh | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) (limited to 'bin') diff --git a/bin/cleandb.sh b/bin/cleandb.sh index 9edfeec91..d811c8d01 100755 --- a/bin/cleandb.sh +++ b/bin/cleandb.sh @@ -19,7 +19,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require INSTALL_PATH.'program/include/clisetup.php'; diff --git a/bin/decrypt.sh b/bin/decrypt.sh index 7f83f3a7f..dd4525972 100755 --- a/bin/decrypt.sh +++ b/bin/decrypt.sh @@ -52,7 +52,7 @@ * - you are dealing with counterfeit header data. */ -define('INSTALL_PATH', realpath(dirname(__FILE__).'/..') . '/'); +define('INSTALL_PATH', realpath(__DIR__ .'/..') . '/'); require INSTALL_PATH . 'program/include/clisetup.php'; diff --git a/bin/deluser.sh b/bin/deluser.sh index 0489f4da4..1e93793cf 100755 --- a/bin/deluser.sh +++ b/bin/deluser.sh @@ -20,7 +20,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require_once INSTALL_PATH . 'program/include/clisetup.php'; diff --git a/bin/dumpschema.sh b/bin/dumpschema.sh index 6d5cde723..32c90ac13 100755 --- a/bin/dumpschema.sh +++ b/bin/dumpschema.sh @@ -19,7 +19,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require INSTALL_PATH.'program/include/clisetup.php'; diff --git a/bin/exportgettext.sh b/bin/exportgettext.sh index b220b2242..314cae7d2 100755 --- a/bin/exportgettext.sh +++ b/bin/exportgettext.sh @@ -15,7 +15,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require INSTALL_PATH.'program/include/clisetup.php'; if ($argc < 2) { diff --git a/bin/gc.sh b/bin/gc.sh index 1ee610741..e0d722a18 100755 --- a/bin/gc.sh +++ b/bin/gc.sh @@ -19,7 +19,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require INSTALL_PATH.'program/include/clisetup.php'; diff --git a/bin/importgettext.sh b/bin/importgettext.sh index 285f5680f..5a91e6bc1 100755 --- a/bin/importgettext.sh +++ b/bin/importgettext.sh @@ -15,7 +15,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require INSTALL_PATH.'program/include/clisetup.php'; if ($argc < 2) { diff --git a/bin/indexcontacts.sh b/bin/indexcontacts.sh index 9509dc06a..2844742f7 100755 --- a/bin/indexcontacts.sh +++ b/bin/indexcontacts.sh @@ -19,7 +19,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require_once INSTALL_PATH.'program/include/clisetup.php'; ini_set('memory_limit', -1); diff --git a/bin/installto.sh b/bin/installto.sh index fbd951bdf..d239c633d 100755 --- a/bin/installto.sh +++ b/bin/installto.sh @@ -19,7 +19,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require_once INSTALL_PATH . 'program/include/clisetup.php'; diff --git a/bin/moduserprefs.sh b/bin/moduserprefs.sh index e892b1f4d..3d46baaa4 100755 --- a/bin/moduserprefs.sh +++ b/bin/moduserprefs.sh @@ -18,7 +18,7 @@ +-----------------------------------------------------------------------+ */ -define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); require_once INSTALL_PATH.'program/include/clisetup.php'; diff --git a/bin/msgexport.sh b/bin/msgexport.sh index f68688b67..f76aefe86 100755 --- a/bin/msgexport.sh +++ b/bin/msgexport.sh @@ -1,7 +1,7 @@ #!/usr/bin/env php