summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index f35a64e0e..230bb20da 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -115,7 +115,7 @@ function _theme_set_registry($registry) {
function _theme_load_registry($theme, $theme_engine = NULL) {
$cache = cache_get("theme_registry:$theme", 'cache');
if (isset($cache->data)) {
- $registry = unserialize($cache->data);
+ $registry = $cache->data;
}
else {
$registry = _theme_build_registry($theme, $theme_engine);
@@ -128,7 +128,7 @@ function _theme_load_registry($theme, $theme_engine = NULL) {
* Write the theme_registry cache into the database.
*/
function _theme_save_registry($theme, $registry) {
- cache_set("theme_registry:$theme", serialize($registry));
+ cache_set("theme_registry:$theme", $registry);
}
/**