Skip to content

Commit

Permalink
get meta once instead of twice
Browse files Browse the repository at this point in the history
  • Loading branch information
james2doyle committed Jan 11, 2014
1 parent e347713 commit e3008bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ public function on($eventKey, $data = null) {
$this->config['pages'] = array();
// convert the pages into key => values and not an object
for ($i=0; $i < count($pages); $i++) {
$meta = $pages[$i]->getMeta();
$this->config['pages'][] = array(
'title' => $pages[$i]->getTitle(),
'url' => $pages[$i]->getUrl(),
'content' => $pages[$i]->getContent(),
'meta' => $pages[$i]->getMeta(),
'date' => $pages[$i]->getMeta()['date']
'meta' => $meta,
'date' => $meta['date']
);
}

Expand Down

0 comments on commit e3008bc

Please sign in to comment.