Skip to content

Commit

Permalink
making all data available under
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Apr 13, 2015
1 parent ccc4ce7 commit 7507d37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/helpers/page_controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7507d37

Please sign in to comment.