Commit b5580054 authored by merlinofchaos's avatar merlinofchaos
Browse files

#122103: Fix blank titles of blocks exported by views.

parent cb2046bd
......@@ -133,6 +133,7 @@ Views --dev
o #119742: Improved handling of DISTINCT; allow DISTINCT to not kill summaries.
o #111936: Allow search keyword to be optional.
o #116985: Fix channel link in RSS feeds.
o #122103: Fix blank titles of blocks exported by views.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -216,7 +216,8 @@ function views_block($op = 'list', $delta = 0) {
foreach ($default_views as $name => $view) {
if (!isset($block[$name]) && $view->block &&
($views_status[$name] == 'enabled' || (!$view->disabled && $views_status[$name] != 'disabled'))) {
$block[$name]['info'] = filter_xss_admin(views_get_title($view, 'block'));
$title = filter_xss_admin(views_get_title($view, 'block'));
$block[$name]['info'] = empty($title) ? $name : $title;
}
}
return $block;
......
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