Commit 45df6d02 authored by merlinofchaos's avatar merlinofchaos
Browse files

2 fixes for things I broke last night

parent 1fdb77dc
......@@ -808,7 +808,7 @@ function views_get_title($view, $context = 'menu', $args = NULL) {
}
}
if (!$title && $context == 'menu') {
if (!$title && ($context == 'menu' || $context == 'page')) {
$title = $view->page_title;
}
......
......@@ -38,6 +38,7 @@ function _views_build_query(&$view, $args = array()) {
if (!$self_sort) {
$sort = true;
}
break 2;
case 7:
// to trigger empty text, send back an empty query
$info['query'] = NULL;
......@@ -373,7 +374,7 @@ class _views_query {
}
foreach($field as $f) {
$this->add_field($f, $table);
// $this->add_field($f, $table);
$this->orderby[] = "$alias$f $order";
}
}
......
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