From ab8b44741d3c1cf4f088bc899ed8ebb8647ac436 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Wed, 01 Oct 2008 05:21:22 -0400 Subject: [PATCH] - Allow calling msgimport.sh/msgexport.sh from any directory (#1485431) --- bin/msgexport.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bin/msgexport.sh b/bin/msgexport.sh index 33d5d4b..b15da1f 100755 --- a/bin/msgexport.sh +++ b/bin/msgexport.sh @@ -1,7 +1,7 @@ #!/usr/bin/php <?php -define('INSTALL_PATH', preg_replace('/bin\/$/', '', getcwd()) . '/'); +define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); ini_set('memory_limit', -1); require_once INSTALL_PATH.'program/include/iniset.php'; -- Gitblit v1.9.1