Commit c8b7c503 authored by merlinofchaos's avatar merlinofchaos

#119082: Fixed a problem with view titles on the admin page.

parent 9e1de870
......@@ -122,6 +122,7 @@ Views 4.7.x-dev
o #73183: More missing t() in default views
o #88947: If NULL query don't try to run it at all.
o #113332: NULL entries for vocabulary summaries with nodes without terms.
o #119082: Fixed a problem with view titles on the admin page.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -924,7 +924,7 @@ function views_get_title($view, $context = 'menu', $args = NULL) {
$title = $view->page_title;
}
if (!$title && $context == 'block' || $context == 'admin') {
if (!$title && ($context == 'block' || $context == 'admin')) {
$title = $view->block_title;
}
......
......@@ -206,6 +206,7 @@ function views_ui_admin_page() {
if ($view->menu) {
$provides[] = 'Menu';
}
$items[] = array(
$view->name,
views_get_title($view, 'admin'),
......
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