summaryrefslogtreecommitdiff
path: root/bin/msgexport.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/msgexport.sh')
-rwxr-xr-xbin/msgexport.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/msgexport.sh b/bin/msgexport.sh
index 33d5d4b4a..b15da1feb 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';