Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:
// conf/settings.php
$Configuration['NO_PREFIX'] = array('User','Role');
function GetTableName($Key, &$TableCollection, $Prefix) {
// Current code
// if ($Key == "User") {
////
if (in_array($Key, $Configuration['NO_PREFIX']) {
return $TableCollection[$Key];
} else {
return $Prefix.$TableCollection[$Key];
}
<?php
$Prefix = $Configuration['DATABASE_TABLE_PREFIX'] = 'LUM_';
$DatabaseTables['Category'] = $Prefix.'Category';
$DatabaseTables['CategoryBlock'] = $Prefix.'CategoryBlock';
$DatabaseTables['CategoryRoleBlock'] = $Prefix.'CategoryRoleBlock';
$DatabaseTables['Comment'] = $Prefix.'Comment';
$DatabaseTables['User'] = $Prefix.'User';
?>This method would also eliminate the need for the GetTableName() function (Prefix appending would be implemented into SqlBuilder where it belongs). However, that might make a rough upgrade path...
1 to 4 of 4