Permalink
Browse files

instead of checking page title, check page tab

  • Loading branch information...
1 parent ddad5e3 commit b5d153289d80ec99fbe21ae7a88c7a10196ece4d @rmarianski committed Jun 2, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 application/controllers/home.php
  2. +2 −2 application/helpers/nav.php
@@ -9,7 +9,7 @@ class Home_Controller extends Main_Controller {
public function index() {
$page = ORM::factory("page")
- ->where("page_title", "Trends")
+ ->where("page_tab", "Trends")
->where("page_active", "1")
->find_all();
$page = $page[0];
@@ -32,7 +32,7 @@ public static function main_tabs($this_page = FALSE)
// Trends page
// lookup the id from the database
$page = ORM::factory("page")
- ->where("page_title", "Trends")
+ ->where("page_tab", "Trends")
->where("page_active", "1")
->find_all();
$page = $page[0];
@@ -65,7 +65,7 @@ public static function main_tabs($this_page = FALSE)
$pages = ORM::factory('page')->where('page_active', '1')->find_all();
foreach ($pages as $page)
{
- if ($page->page_title !== "Trends") {
+ if ($page->page_tab !== "Trends") {
$menu .= "<li><a href=\"".url::site()."page/index/".$page->id."\" ";
$menu .= ($this_page == 'page_'.$page->id) ? " class=\"active\"" : "";
$menu .= ">".$page->page_tab."</a></li>";

0 comments on commit b5d1532

Please sign in to comment.