From: Alexander Ebert Date: Sun, 14 Oct 2012 17:56:05 +0000 (+0200) Subject: Re-added RELATIVE_WCF_DIR to config file X-Git-Tag: 2.0.0_Beta_1~870^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9f21bea57e35e3b5cdb735977e51da50c92e29c;p=GitHub%2FWoltLab%2FWCF.git Re-added RELATIVE_WCF_DIR to config file --- diff --git a/wcfsetup/install/files/lib/data/package/Package.class.php b/wcfsetup/install/files/lib/data/package/Package.class.php index 710fa83863..7202e719f4 100644 --- a/wcfsetup/install/files/lib/data/package/Package.class.php +++ b/wcfsetup/install/files/lib/data/package/Package.class.php @@ -545,6 +545,7 @@ class Package extends DatabaseObject { // write general information $file->write("// general info\n"); + $file->write("if (!defined('RELATIVE_WCF_DIR')) define('RELATIVE_WCF_DIR', RELATIVE_".$currentPrefix."_DIR.'".FileUtil::getRelativePath($packageDir, WCF_DIR)."');\n"); $file->write("if (!defined('PACKAGE_ID')) define('PACKAGE_ID', ".$package->packageID.");\n"); $file->write("if (!defined('PACKAGE_NAME')) define('PACKAGE_NAME', '".str_replace("'", "\'", $package->getName())."');\n"); $file->write("if (!defined('PACKAGE_VERSION')) define('PACKAGE_VERSION', '".$package->packageVersion."');\n");