summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-29 18:08:54 +0200
committerBart Visscher <bartv@thisnet.nl>2012-10-02 18:00:23 +0200
commitbb136b9adf021cb154ff05222d3439373312bbc5 (patch)
treea6fccf936b0a40c7d48d55a23f4897b0332c3192 /core
parent210ea4d9d9a3488918c898beb6d6508c60686ad1 (diff)
downloadnextcloud-server-bb136b9adf021cb154ff05222d3439373312bbc5.tar.gz
nextcloud-server-bb136b9adf021cb154ff05222d3439373312bbc5.zip
Make the settings ajax calls use the router
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js7
-rw-r--r--core/routes.php14
2 files changed, 7 insertions, 14 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 39a58a24599..ffe3507a4eb 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -88,7 +88,12 @@ var OC={
}
link+=file;
}else{
- link+='/';
+ if (app == 'settings' && type == 'ajax') {
+ link+='/index.php/';
+ }
+ else {
+ link+='/';
+ }
if(!isCore){
link+='apps/';
}
diff --git a/core/routes.php b/core/routes.php
index 9a84eb64a3b..b0f41dd2861 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -6,19 +6,7 @@
* See the COPYING-README file.
*/
-// Core settings pages
-$this->create('settings_help', '/settings/help')
- ->actionInclude('settings/help.php');
-$this->create('settings_personal', '/settings/personal')
- ->actionInclude('settings/personal.php');
-$this->create('settings_settings', '/settings')
- ->actionInclude('settings/settings.php');
-$this->create('settings_users', '/settings/users')
- ->actionInclude('settings/users.php');
-$this->create('settings_apps', '/settings/apps')
- ->actionInclude('settings/apps.php');
-$this->create('settings_admin', '/settings/admin')
- ->actionInclude('settings/admin.php');
+require_once('settings/routes.php');
// Not specifically routed
$this->create('app_css', '/apps/{app}/{file}')