summaryrefslogtreecommitdiff
path: root/modules/locale.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-03-06 20:50:39 +0000
committerDries Buytaert <dries@buytaert.net>2006-03-06 20:50:39 +0000
commit71b0e2ddb7f9aa5dfce884606dab56aab86923b4 (patch)
treef2e974aae394b22cf2579e5f53806e5ef7f86792 /modules/locale.module
parentc54a0f575f4a00a8cb51a319648065627d237439 (diff)
downloadbrdo-71b0e2ddb7f9aa5dfce884606dab56aab86923b4.tar.gz
brdo-71b0e2ddb7f9aa5dfce884606dab56aab86923b4.tar.bz2
- Patch #52324 by chx: fixed warnings when inserting locale strings.
Diffstat (limited to 'modules/locale.module')
-rw-r--r--modules/locale.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/locale.module b/modules/locale.module
index 7d93ebf23..365205ba9 100644
--- a/modules/locale.module
+++ b/modules/locale.module
@@ -167,7 +167,7 @@ function locale($string) {
// We have no such translation
if ($obj = db_fetch_object($result)) {
if ($locale) {
- db_query("INSERT INTO {locales_target} (lid, locale) VALUES (%d, '%s')", $obj->lid, $locale);
+ db_query("INSERT INTO {locales_target} (lid, locale, translation) VALUES (%d, '%s', '')", $obj->lid, $locale);
}
}
// We have no such source string
@@ -175,7 +175,7 @@ function locale($string) {
db_query("INSERT INTO {locales_source} (location, source) VALUES ('%s', '%s')", request_uri(), $string);
if ($locale) {
$lid = db_fetch_object(db_query("SELECT lid FROM {locales_source} WHERE source = '%s'", $string));
- db_query("INSERT INTO {locales_target} (lid, locale) VALUES (%d, '%s')", $lid->lid, $locale);
+ db_query("INSERT INTO {locales_target} (lid, locale, translation) VALUES (%d, '%s', '')", $lid->lid, $locale);
}
}
// Clear locale cache in DB