diff options
Diffstat (limited to 'includes/locale.inc')
-rw-r--r-- | includes/locale.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index 6fd51a5a6..ab0a49eb5 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -1,6 +1,8 @@ <? function t($string) { + $result = db_query("SELECT id FROM locales WHERE english = '". addslashes($string) ."'"); + if (!db_fetch_object($result)) db_query("INSERT INTO locales (english) VALUES ('". addslashes($string) ."')"); return $string; } |