Merge branch '0.7.x' into 0.8.x

This commit is contained in:
Sarven Capadisli
2009-04-08 22:58:21 +00:00
4 changed files with 25 additions and 4 deletions

View File

@@ -1379,3 +1379,16 @@ function common_compatible_license($from, $to)
// XXX: better compatibility check needed here!
return ($from == $to);
}
/**
* returns a quoted table name, if required according to config
*/
function common_database_tablename($tablename)
{
if(common_config('db','quote_identifiers')) {
$tablename = '"'. $tablename .'"';
}
//table prefixes could be added here later
return $tablename;
}