diff options
author | Zach Copley <zach@status.net> | 2009-11-19 15:02:25 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-11-19 15:02:25 -0800 |
commit | 8618b064e226e7a2ff16627eaa2a76906ac64176 (patch) | |
tree | 5a8380c4cd574d19c73df6ec01443aaf844ec575 /lib | |
parent | 8971a12f89ad161bfaea6a5b938ee2bb4b2bf8c5 (diff) |
Added a user admin panel
Diffstat (limited to 'lib')
-rw-r--r-- | lib/adminpanelaction.php | 3 | ||||
-rw-r--r-- | lib/router.php | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/adminpanelaction.php b/lib/adminpanelaction.php index 89a129db1..7997eb2b1 100644 --- a/lib/adminpanelaction.php +++ b/lib/adminpanelaction.php @@ -302,6 +302,9 @@ class AdminPanelNav extends Widget $this->out->menuItem(common_local_url('designadminpanel'), _('Design'), _('Design configuration'), $action_name == 'designadminpanel', 'nav_design_admin_panel'); + $this->out->menuItem(common_local_url('useradminpanel'), _('User'), + _('Paths configuration'), $action_name == 'useradminpanel', 'nav_design_admin_panel'); + $this->out->menuItem(common_local_url('pathsadminpanel'), _('Paths'), _('Paths configuration'), $action_name == 'pathsadminpanel', 'nav_design_admin_panel'); diff --git a/lib/router.php b/lib/router.php index afe36f712..d5101826f 100644 --- a/lib/router.php +++ b/lib/router.php @@ -590,9 +590,11 @@ class Router $m->connect('admin/site', array('action' => 'siteadminpanel')); $m->connect('admin/design', array('action' => 'designadminpanel')); + $m->connect('admin/user', array('action' => 'useradminpanel')); $m->connect('admin/paths', array('action' => 'pathsadminpanel')); + $m->connect('getfile/:filename', array('action' => 'getfile'), array('filename' => '[A-Za-z0-9._-]+')); |