Skip to content

Commit

Permalink
version 1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Feb 21, 2016
1 parent 6100a93 commit e6b33af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[
{
"version": "1.7.3",
"downloadUrl": "https://github.com/engram-design/CPNav/archive/1.7.3.zip",
"date": "2016-02-21 13:10:00",
"notes": [
"[Added] Added `{siteUrl}` twig tag when creating nav items."
]
},
{
"version": "1.7.2",
"downloadUrl": "https://github.com/engram-design/CPNav/archive/1.7.2.zip",
Expand Down
2 changes: 1 addition & 1 deletion cpnav/CpNavPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function getName()

public function getVersion()
{
return '1.7.2';
return '1.7.3';
}

public function getSchemaVersion()
Expand Down
3 changes: 3 additions & 0 deletions cpnav/services/CpNavService.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ private function _processUrl($newNav)
// Allow Enviroment Variables to be used in the URL
$url = craft()->config->parseEnvironmentString(trim($newNav->url));

// Support siteUrl
$url = str_replace('{siteUrl}', craft()->config->get('siteUrl') . '/', $url);

// And a spcial case for global - always direct to first global set
if ($newNav->handle == 'globals') {
$globals = craft()->globals->getEditableSets();
Expand Down

0 comments on commit e6b33af

Please sign in to comment.