Commit ac416140 authored by merlinofchaos's avatar merlinofchaos
Browse files

Favor page title over block title in menu context (71671)

parent c824fcf0
......@@ -807,16 +807,11 @@ function views_get_title($view, $context = 'menu', $args = NULL) {
}
if (!$title && $context == 'menu') {
$title = $view->block_title;
$title = $view->page_title;
}
if (!$title) {
if ($context == 'block' && $view->block_title) {
$title = $view->block_title;
}
else {
$title = $view->page_title;
}
$title = $view->block_title;
}
if (!$view->argument) {
......
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