diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-05-20 16:49:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-05-20 16:49:27 +0000 |
commit | 6c3e94e385150635f13928fbe92fd5ccc62fa9e4 (patch) | |
tree | 944c0f21881a68cbdcfe417a28e87249cbfe0305 /modules/locale/locale.module | |
parent | 27496c4620f3669b3c5449816550edee73e3794f (diff) | |
download | brdo-6c3e94e385150635f13928fbe92fd5ccc62fa9e4.tar.gz brdo-6c3e94e385150635f13928fbe92fd5ccc62fa9e4.tar.bz2 |
- Fixed small glitch in locale.module.
Diffstat (limited to 'modules/locale/locale.module')
-rw-r--r-- | modules/locale/locale.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module index 1e2a074c8..40718a8f0 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -100,7 +100,7 @@ function locale_admin() { function locale($string) { global $locale; - if ($locale) { + if (variable_get("locale", 0)) { $result = db_query("SELECT id, $locale FROM locales WHERE STRCMP(string, '". addslashes($string) ."') = 0"); if ($translation = db_fetch_object($result)) $string = ($translation->$locale) ? check_output($translation->$locale) : $string; else db_query("INSERT INTO locales (string, location) VALUES ('". addslashes($string) ."', '". check_input(getenv("REQUEST_URI")) ."')"); |