Commit e9d88f82 authored by merlinofchaos's avatar merlinofchaos

#216819: by csevb10: $language is now an object and causes errors in caching...

#216819: by csevb10: $language is now an object and causes errors in caching if not treated properly.
parent 8f634d49
......@@ -107,7 +107,7 @@ function _views_discover_default_views() {
if (!isset($cache)) {
global $language;
$data = cache_get('views_default_views:' . $language, 'cache_views');
$data = cache_get('views_default_views:' . $language->language, 'cache_views');
if (isset($data->data)) {
$cache = $data->data;
......@@ -120,7 +120,7 @@ function _views_discover_default_views() {
foreach ($defaults as $name => $view) {
$cache[$name] = $view;
}
cache_set('views_default_views:' . $language, $cache, 'cache_views');
cache_set('views_default_views:' . $language->language, $cache, 'cache_views');
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment