summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-05-20 16:49:27 +0000
committerDries Buytaert <dries@buytaert.net>2001-05-20 16:49:27 +0000
commit6c3e94e385150635f13928fbe92fd5ccc62fa9e4 (patch)
tree944c0f21881a68cbdcfe417a28e87249cbfe0305
parent27496c4620f3669b3c5449816550edee73e3794f (diff)
downloadbrdo-6c3e94e385150635f13928fbe92fd5ccc62fa9e4.tar.gz
brdo-6c3e94e385150635f13928fbe92fd5ccc62fa9e4.tar.bz2
- Fixed small glitch in locale.module.
-rw-r--r--modules/locale.module2
-rw-r--r--modules/locale/locale.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/locale.module b/modules/locale.module
index 1e2a074c8..40718a8f0 100644
--- a/modules/locale.module
+++ b/modules/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")) ."')");
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")) ."')");