$file->write("if (!defined('".$prefix."_DIR')) define('".$prefix."_DIR', dirname(__FILE__).'/');\n");
$file->write("if (!defined('RELATIVE_".$prefix."_DIR')) define('RELATIVE_".$prefix."_DIR', '');\n");
$file->write("\n");
- $file->write("\n// using ".$prefix."_N is deprecated, please use WCF_N instead!");
- $file->write("if (!defined('".$prefix."_N')) define('".$prefix."_N', '".WCF_N."');\n");
- $file->write("\n");
// write general information
$file->write("// general info\n");
if ($package->isApplication == 1) {
// package is application
$packageAbbr = Package::getAbbreviation($package->package);
- $tablePrefix = WCF_N;
+ $tablePrefix = WCF_N.'_';
// Replace the variable xyz1_1 with $tablePrefix in the table names.
- $queries = StringUtil::replace($packageAbbr.'1_1_', $packageAbbr.$tablePrefix, $queries);
+ $queries = StringUtil::replace($packageAbbr.'1_', $packageAbbr.$tablePrefix, $queries);
}
// replace wcf1_ with the actual WCF_N value