diff options
Diffstat (limited to 'pages/admin.php')
-rw-r--r-- | pages/admin.php | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/pages/admin.php b/pages/admin.php index d3e810351..4013e55ac 100644 --- a/pages/admin.php +++ b/pages/admin.php @@ -1,23 +1,21 @@ <?php - /****************************************************************** +/****************************************************************** * * Tidypics Admin Settings * *******************************************************************/ - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php"; +include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php"; - global $CONFIG; +global $CONFIG; - admin_gatekeeper(); - set_context('admin'); - - $tab = isset($_GET['tab']) ? $_GET['tab'] : 'settings'; +admin_gatekeeper(); +set_context('admin'); - $body = elgg_view_title(elgg_echo('tidypics:administration')); - - $body .= elgg_view("tidypics/admin/tidypics", array('tab' => $tab)); - - page_draw(elgg_echo('tidypics:administration'), elgg_view_layout("two_column_left_sidebar", '', $body)); +$tab = get_input('tab', 'settings'); -?>
\ No newline at end of file +$body = elgg_view_title(elgg_echo('tidypics:administration')); + +$body .= elgg_view("tidypics/admin/tidypics", array('tab' => $tab)); + +page_draw(elgg_echo('tidypics:administration'), elgg_view_layout("two_column_left_sidebar", '', $body)); |