Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Force breadcrumbs on report view, category index and search result pages

  • Loading branch information...
commit 62dc51ad8e9e02670ba2818558785942a998cb56 1 parent 115ee9c
@rjmackay rjmackay authored
View
3  controllers/mobile/categories.php
@@ -72,6 +72,9 @@ public function index()
}
}
$this->template->content->categories = $parent_categories;
+
+ // Force Home breadcrumb
+ $this->template->header->breadcrumbs = " ";
// Get pages
$this->template->content->pages = ORM::factory('page')->where('page_active', '1')->find_all();
View
5 controllers/mobile/reports.php
@@ -74,6 +74,9 @@ public function search($town = false)
$this->template->content = new View('mobile/reports');
+ // Force Home breadcrumb
+ $this->template->header->breadcrumbs = " ";
+
$db = new Database;
$town = isset($_GET['town']) ? $_GET['town'] : '';
@@ -179,6 +182,8 @@ public function view($id = false)
$this->template->header->js = new View('mobile/reports_view_js');
$this->template->content = new View('mobile/reports_view');
+ $this->template->header->breadcrumbs = " ";
+
if ( ! $id )
{
url::redirect('mobile');
Please sign in to comment.
Something went wrong with that request. Please try again.