Re-added RELATIVE_WCF_DIR to config file
authorAlexander Ebert <ebert@woltlab.com>
Sun, 14 Oct 2012 17:56:05 +0000 (19:56 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 14 Oct 2012 17:56:05 +0000 (19:56 +0200)
wcfsetup/install/files/lib/data/package/Package.class.php

index 710fa838639da47dd53742be70f27c890dcd1df4..7202e719f44060e0eb49f93b95ac4e7a82303f34 100644 (file)
@@ -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");