Move snapshot configuration to its own admin panel

Turn on with: $config['admin']['panels'][] = 'snapshot';
This commit is contained in:
Zach Copley
2010-03-03 16:47:27 -08:00
parent 8436306d28
commit 61de37ec7b
4 changed files with 263 additions and 50 deletions

View File

@@ -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');