summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-04-25 21:34:32 +0000
committerDries Buytaert <dries@buytaert.net>2007-04-25 21:34:32 +0000
commitdbfcd7d13716a5ad10ad454ca2e22339008c1fd2 (patch)
tree5b0f966b6357e8ed830adf8fe21bc06d46536b05 /modules/locale
parent9a142acc8dcbf690e146d0c146128d8cf8443b47 (diff)
downloadbrdo-dbfcd7d13716a5ad10ad454ca2e22339008c1fd2.tar.gz
brdo-dbfcd7d13716a5ad10ad454ca2e22339008c1fd2.tar.bz2
- Patch #137415 by slantview: simplified the cache API/usages, and made it a tad smarter. Makes it easier to program for, and easier to replace. Will need to be documented.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 5bd955824..a419af94a 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -245,7 +245,7 @@ function locale($string) {
locale_refresh_cache();
$cache = cache_get('locale:'. $language->language, 'cache');
}
- $locale_t = unserialize($cache->data);
+ $locale_t = $cache->data;
}
// We have the translation cached (if it is TRUE, then there is no
@@ -305,7 +305,7 @@ function locale_refresh_cache() {
while ($data = db_fetch_object($result)) {
$t[$data->source] = (empty($data->translation) ? TRUE : $data->translation);
}
- cache_set('locale:'. $language->language, serialize($t));
+ cache_set('locale:'. $language->language, $t);
}
}