postfixadmin-cli.php:

- __initConstants(): substr() is a bad idea to find the parent 
  directory. Use dirname() instead.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1527 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 11 years ago
parent 41a2b72e6d
commit 1c27ab9074

@ -147,7 +147,7 @@ class PostfixAdmin {
define('DS', DIRECTORY_SEPARATOR);
define('PHP5', (PHP_VERSION >= 5));
define('CORE_INCLUDE_PATH', dirname(__FILE__));
define('CORE_PATH', substr(CORE_INCLUDE_PATH, 0, -8) );
define('CORE_PATH', dirname(CORE_INCLUDE_PATH) ); # CORE_INCLUDE_PATH/../
if(!defined('POSTFIXADMIN')) { # already defined if called from setup.php
define('POSTFIXADMIN', 1); # checked in included files

Loading…
Cancel
Save