$classParts = \explode('\\', $className);
if (static::$databaseTableName !== '') {
- return $classParts[0] . '1_' . static::$databaseTableName;
+ return $classParts[0] . WCF_N . '_' . static::$databaseTableName;
}
static $databaseTableNames = [];
if (!isset($databaseTableNames[$className])) {
- $databaseTableNames[$className] = $classParts[0] . '1_' . \strtolower(
- \implode(
- '_',
- \preg_split(
- '~(?=[A-Z](?=[a-z]))~',
- \array_pop($classParts),
- -1,
- \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY
- )
+ $databaseTableNames[$className] = $classParts[0] . WCF_N . '_' . \strtolower(\implode(
+ '_',
+ \preg_split(
+ '~(?=[A-Z](?=[a-z]))~',
+ \array_pop($classParts),
+ -1,
+ \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY
)
- );
+ ));
}
return $databaseTableNames[$className];