Permalink
Browse files

Added relative links for admin pages.

This makes it work in subdirectory installations.
  • Loading branch information...
ZetaTwo committed Oct 9, 2012
1 parent 7377425 commit 0fed89dc1c339e04186bca6479dea6a9ffb9a1c6
Showing with 5 additions and 5 deletions.
  1. +5 −5 app/views/elements/admin_header.ctp
@@ -1,10 +1,10 @@
<div id="admin_header" class="wrapper">
<h2><?=$selected;?></h2>
<ul class="tabs">
- <li <? if($selected == 'Settings') { echo 'class="selected"'; } ?>><a href="/admin">Settings</a></li>
- <li <? if($selected == 'Flagged Posts') { echo 'class="selected"'; } ?>><a href="/admin/flagged">Flagged Posts</a></li>
- <li <? if($selected == 'Users') { echo 'class="selected"'; } ?>><a href="/admin/users">Users</a></li>
- <li <? if($selected == 'Blacklist') { echo 'class="selected"'; } ?>><a href="/admin/blacklist">Blacklist</a></li>
- <li <? if($selected == 'Remote Settings') { echo 'class="selected"'; } ?>><a href="/admin/remote_settings">Remote Settings</a></li>
+ <li <? if($selected == 'Settings') { echo 'class="selected"'; } ?>><?=$html->link(__('Settings',true),'/admin');?></li>
+ <li <? if($selected == 'Flagged Posts') { echo 'class="selected"'; } ?>><?=$html->link(__('Flagged Posts',true),'/admin/flagged');?></li>
+ <li <? if($selected == 'Users') { echo 'class="selected"'; } ?>><?=$html->link(__('Users',true),'/admin/users');?></li>
+ <li <? if($selected == 'Blacklist') { echo 'class="selected"'; } ?>><?=$html->link(__('Blacklist',true),'/admin/blacklist');?></li>
+ <li <? if($selected == 'Remote Settings') { echo 'class="selected"'; } ?>><?=$html->link(__('Remote Settings',true),'/admin/remote_settings');?></li>
</ul>
</div>

0 comments on commit 0fed89d

Please sign in to comment.