Skip to content

Commit

Permalink
Use route_path config option in extension
Browse files Browse the repository at this point in the history
  • Loading branch information
emarref committed Aug 25, 2015
1 parent d9fe695 commit 5cbf6ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ public function initialize()
if (empty($this->config['default_taxonomy'])) {
$this->config['default_taxonomy'] = 'tags';
}

if (empty($this->config['route_path'])) {
$this->config['route_path'] = '/taxonomies';
}

// Set up the routes for the sitemap..
$this->app->match("/taxonomies", array($this, 'taxonomies'));
$this->app->match($this->config['route_path'], array($this, 'taxonomies'));

$this->addTwigFunction('taxonomylist', 'twigTaxonomyList');
}
Expand Down

0 comments on commit 5cbf6ca

Please sign in to comment.