aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-06-08 00:16:53 +0000
committerCash Costello <cash.costello@gmail.com>2011-06-08 00:16:53 +0000
commite6f2aab29afb89bc07ff8bd867a9c69f85f1eb21 (patch)
treedfea3aee76eabf1b1ed2942d6eec6c7c33438758
parent0db39bf5f812ed0fbfcfc06f482f27c3aa18cd2b (diff)
downloadelgg-e6f2aab29afb89bc07ff8bd867a9c69f85f1eb21.tar.gz
elgg-e6f2aab29afb89bc07ff8bd867a9c69f85f1eb21.tar.bz2
using the page handler for the admin page
-rw-r--r--pages/admin.php12
-rw-r--r--start.php6
2 files changed, 8 insertions, 10 deletions
diff --git a/pages/admin.php b/pages/admin.php
index 4013e55ac..1a04ab279 100644
--- a/pages/admin.php
+++ b/pages/admin.php
@@ -1,13 +1,7 @@
<?php
-/******************************************************************
- *
- * Tidypics Admin Settings
- *
- *******************************************************************/
-
-include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php";
-
-global $CONFIG;
+/**
+ * Tidypics Admin Page
+ */
admin_gatekeeper();
set_context('admin');
diff --git a/start.php b/start.php
index d7110dfd0..60dc46579 100644
--- a/start.php
+++ b/start.php
@@ -203,7 +203,7 @@ function tidypics_adminmenu() {
global $CONFIG;
if (get_context() == 'admin' && isadminloggedin()) {
- add_submenu_item(elgg_echo('tidypics:administration'), $CONFIG->url . "mod/tidypics/pages/admin.php");
+ add_submenu_item(elgg_echo('tidypics:administration'), $CONFIG->url . "pg/photos/admin/");
}
}
@@ -365,6 +365,10 @@ function tidypics_page_handler($page) {
}
include($CONFIG->pluginspath . "tidypics/pages/flickr/setup.php");
break;
+
+ case "admin":
+ include ($CONFIG->pluginspath . "tidypics/pages/admin.php");
+ break;
}
}
else {