]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
using the page handler for the admin page
authorCash Costello <cash.costello@gmail.com>
Wed, 8 Jun 2011 00:16:53 +0000 (00:16 +0000)
committerCash Costello <cash.costello@gmail.com>
Wed, 8 Jun 2011 00:16:53 +0000 (00:16 +0000)
pages/admin.php
start.php

index 4013e55acdd370baae71553c80ea1f907dc015c0..1a04ab2795f5ff04f7f89d84b4702641176e73bd 100644 (file)
@@ -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');
index d7110dfd0fd408b8f7b86c8b8a82bdaff487b585..60dc465793e3b884e528d6055226bde2aa84703d 100644 (file)
--- 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 {