Skip to content

Commit

Permalink
add uri option to plugin url:site
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosCoelho committed Apr 15, 2011
1 parent ee75288 commit 37252d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/pyrocms/plugins/url.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ function current()
*/
function site()
{
return rtrim(site_url(), '/').'/';
$uri = $this->attribute('uri');

return $uri ? site_url($uri) : rtrim(site_url(), '/').'/';
}

/**
Expand Down

0 comments on commit 37252d9

Please sign in to comment.