aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-30 23:04:47 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-09-30 23:04:47 +0000
commit5d090b23cca3b0f831b29fe4dad2926f1b3b33fc (patch)
tree562058ca452170e1556b26627cbae6ef63ae11f0 /engine/lib
parentdc5813300352f43b0ed67e0811967e1ec12628c3 (diff)
downloadelgg-5d090b23cca3b0f831b29fe4dad2926f1b3b33fc.tar.gz
elgg-5d090b23cca3b0f831b29fe4dad2926f1b3b33fc.tar.bz2
Refs #2344 - moves settings pages into the pages directory
git-svn-id: http://code.elgg.org/elgg/trunk@6986 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/usersettings.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/engine/lib/usersettings.php b/engine/lib/usersettings.php
index baaf41562..e4416ab5e 100644
--- a/engine/lib/usersettings.php
+++ b/engine/lib/usersettings.php
@@ -46,13 +46,19 @@ function usersettings_pagesetup() {
function usersettings_page_handler($page) {
global $CONFIG;
- $path = $CONFIG->path . "settings/index.php";
+ $path = $CONFIG->path . "pages/settings/index.php";
if ($page[0]) {
switch ($page[0]) {
- case 'user' : $path = $CONFIG->path . "settings/user.php"; break;
- case 'statistics' : $path = $CONFIG->path . "settings/statistics.php"; break;
- case 'plugins' : $path = $CONFIG->path . "settings/plugins.php"; break;
+ case 'user':
+ $path = $CONFIG->path . "pages/settings/user.php";
+ break;
+ case 'statistics':
+ $path = $CONFIG->path . "pages/settings/statistics.php";
+ break;
+ case 'plugins':
+ $path = $CONFIG->path . "pages/settings/plugins.php";
+ break;
}
}
@@ -60,7 +66,7 @@ function usersettings_page_handler($page) {
set_input('username', $page[1]);
}
- include($path);
+ require($path);
}
/**