Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
$app['nav'] in Zepto\Zepto is empty unless specifically set. …
Browse files Browse the repository at this point in the history
…This should probably be changed.
  • Loading branch information
hassankhan committed Feb 12, 2014
1 parent 7037279 commit f3b469a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Zepto/Zepto.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ protected function setup_router()
// Get local references
$app = $this->app;
$router = $app['router'];
$nav = $app['nav'];

$file_list = $app['content_loader']->get_folder_contents();

Expand Down Expand Up @@ -285,6 +284,8 @@ protected function setup_router()
'site_title' => $app['settings']['site']['site_title']
);

$app['nav'] = isset($app['nav']) === TRUE ? $app['nav'] : array();

// Merge Twig options and content into one array
$options = array_merge($twig_vars, $content, $app['nav']);

Expand Down

0 comments on commit f3b469a

Please sign in to comment.