From fd1acc79bce6c6e1cee19040857b6d8e073cbc2f Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 8 Jan 2011 18:24:36 +0000 Subject: drying up the title creation in the admin backend git-svn-id: http://code.elgg.org/elgg/trunk@7864 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/admin.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/admin.php b/engine/lib/admin.php index be3f8eacc..baecc6592 100644 --- a/engine/lib/admin.php +++ b/engine/lib/admin.php @@ -123,7 +123,7 @@ function admin_init() { // admin area overview and basic site settings elgg_add_admin_menu_item('overview', elgg_echo('admin:overview')); - elgg_add_admin_menu_item('statistics', elgg_echo('admin:statistics'), 'overview'); + elgg_add_admin_menu_item('statistics', elgg_echo('admin:overview:statistics'), 'overview'); // site elgg_add_admin_menu_item('site', elgg_echo('admin:site')); @@ -132,8 +132,8 @@ function admin_init() { // appearance elgg_add_admin_menu_item('appearance', elgg_echo('admin:appearance')); - elgg_add_admin_menu_item('menu_items', elgg_echo('admin:menu_items'), 'appearance'); - elgg_add_admin_menu_item('profile_fields', elgg_echo('admin:profile:fields'), 'appearance'); + elgg_add_admin_menu_item('menu_items', elgg_echo('admin:appearance:menu_items'), 'appearance'); + elgg_add_admin_menu_item('profile_fields', elgg_echo('admin:appearance:profile_fields'), 'appearance'); // users elgg_add_admin_menu_item('users', elgg_echo('admin:users')); @@ -200,9 +200,10 @@ function admin_settings_page_handler($page) { $vars['plugin'] = $page[1]; $vars['entity'] = find_plugin_settings($page[1]); $title = elgg_echo("admin:plugin_settings:{$page[1]}"); + $title = elgg_echo("admin:{$page[0]}"); } else { $view = 'admin/' . implode('/', $page); - $title = elgg_echo('admin:' . implode(':', $page)); + $title = elgg_echo("admin:{$page[0]}"); } // allow a place to store helper views outside of the web-accessible views @@ -220,7 +221,7 @@ function admin_settings_page_handler($page) { $content = "
$notices_html
$content"; } - $body = elgg_view_layout('administration', array('content' => $content)); + $body = elgg_view_layout('admin', array('content' => $content, 'title' => $title)); echo elgg_view_page($title, $body, 'admin'); } -- cgit v1.2.3