diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/usersettings.php | 16 |
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); } /** |