From: Adrian Lang Date: Mon, 20 Apr 2009 10:15:12 +0000 (+0200) Subject: Merge branch '0.7.x' of git://gitorious.org/laconica/bAvatar-clone without the uninte... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=558fa2743e182e50efb8aa1ad3fbc756ca1665e7;p=quix0rs-gnu-social.git Merge branch '0.7.x' of git://gitorious.org/laconica/bAvatar-clone without the unintended deletion. --- 558fa2743e182e50efb8aa1ad3fbc756ca1665e7 diff --cc lib/util.php index 5d16e39b56,ab5e99593e..e0eda0114b --- a/lib/util.php +++ b/lib/util.php @@@ -1321,17 -1326,3 +1326,16 @@@ function common_compatible_license($fro // 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; +} -