From: cash
Date: Thu, 30 Sep 2010 22:57:58 +0000 (+0000)
Subject: Refs #2344 - moves dashboard pages into pages directory
X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=dc5813300352f43b0ed67e0811967e1ec12628c3;p=lorea%2Felgg.git
Refs #2344 - moves dashboard pages into pages directory
git-svn-id: http://code.elgg.org/elgg/trunk@6985 36083f99-b078-4883-b0ff-0f9b5a30f544
---
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 5c2ac7731..5d16decb7 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -1176,7 +1176,7 @@ function collections_page_handler($page_elements) {
* Page handler for dashboard
*/
function dashboard_page_handler($page_elements) {
- require_once(dirname(dirname(dirname(__FILE__))) . "/dashboard/index.php");
+ require_once(dirname(dirname(dirname(__FILE__))) . "/pages/dashboard/index.php");
}
diff --git a/dashboard/index.php b/pages/dashboard/index.php
similarity index 82%
rename from dashboard/index.php
rename to pages/dashboard/index.php
index 174869cec..26b811ce9 100644
--- a/dashboard/index.php
+++ b/pages/dashboard/index.php
@@ -8,9 +8,6 @@
* @link http://elgg.org/
*/
-// Get the Elgg engine
-require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
-
// Ensure that only logged-in users can see this page
gatekeeper();
diff --git a/dashboard/latest.php b/pages/dashboard/latest.php
similarity index 90%
rename from dashboard/latest.php
rename to pages/dashboard/latest.php
index c1a3d3db5..f746820b1 100644
--- a/dashboard/latest.php
+++ b/pages/dashboard/latest.php
@@ -11,7 +11,7 @@
/**
* Start the Elgg engine
*/
-require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
+require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
// Load the front page
global $CONFIG;
diff --git a/views/default/dashboard/blurb.php b/views/default/dashboard/blurb.php
index 4b71e70e1..d4f9cfd43 100644
--- a/views/default/dashboard/blurb.php
+++ b/views/default/dashboard/blurb.php
@@ -19,6 +19,6 @@
?>
-
+
\ No newline at end of file