From 7507d376325c6e4c464a6fd1c3c7a8e0bc4fa122 Mon Sep 17 00:00:00 2001 From: Makis Tracend Date: Mon, 13 Apr 2015 08:24:34 -0700 Subject: [PATCH] making all data available under --- app/helpers/page_controller.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/helpers/page_controller.php b/app/helpers/page_controller.php index 4be8331..f103fcd 100644 --- a/app/helpers/page_controller.php +++ b/app/helpers/page_controller.php @@ -37,11 +37,14 @@ function getPage( ) { // see if we have found a page if( $page->get('id') ){ // store the information of the page + /* $data['id'] = $this->data['id'] = $page->get('id'); $data['title'] = stripslashes( $page->get('title') ); $data['content'] = stripslashes( $page->get('content') ); $data['tags'] = stripslashes( $page->get('tags') ); $data['date'] = strtotime( stripslashes( $page->get('date') ) ); + */ + $data = $page->getAll(); // check if the page has been classified as a category $this->category = ( strpos( $data['tags'], "category" ) > -1) ? true : false;