summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-03-03 16:47:27 -0800
committerZach Copley <zach@status.net>2010-03-03 16:49:14 -0800
commit61de37ec7bfb620288d3bc3b1fcdfb66725f0f99 (patch)
tree6f96aede2045470452e1504e84552bdbbdc5db5f /lib
parent8436306d2872db2d1a50fdaef3cc1f2c8fb0d114 (diff)
Move snapshot configuration to its own admin panel
Turn on with: $config['admin']['panels'][] = 'snapshot';
Diffstat (limited to 'lib')
-rw-r--r--lib/adminpanelaction.php5
-rw-r--r--lib/router.php1
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/adminpanelaction.php b/lib/adminpanelaction.php
index eb622871e..d1aab3dfc 100644
--- a/lib/adminpanelaction.php
+++ b/lib/adminpanelaction.php
@@ -381,6 +381,11 @@ class AdminPanelNav extends Widget
_('Edit site notice'), $action_name == 'sitenoticeadminpanel', 'nav_sitenotice_admin_panel');
}
+ if (AdminPanelAction::canAdmin('snapshot')) {
+ $this->out->menuItem(common_local_url('snapshotadminpanel'), _('Snapshots'),
+ _('Snapshots configuration'), $action_name == 'snapshotadminpanel', 'nav_snapshot_admin_panel');
+ }
+
Event::handle('EndAdminPanelNav', array($this));
}
$this->action->elementEnd('ul');
diff --git a/lib/router.php b/lib/router.php
index 15f88c959..706120e0b 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -651,6 +651,7 @@ class Router
$m->connect('admin/paths', array('action' => 'pathsadminpanel'));
$m->connect('admin/sessions', array('action' => 'sessionsadminpanel'));
$m->connect('admin/sitenotice', array('action' => 'sitenoticeadminpanel'));
+ $m->connect('admin/snapshot', array('action' => 'snapshotadminpanel'));
$m->connect('getfile/:filename',
array('action' => 'getfile'),