mirror of https://github.com/nextcloud/server
feat(capabilities): Expose if mod-rewrite is working via capabilities
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
715077ea70
commit
bbaaaf4b91
|
@ -98,7 +98,8 @@
|
|||
"pollinterval",
|
||||
"webdav-root",
|
||||
"reference-api",
|
||||
"reference-regex"
|
||||
"reference-regex",
|
||||
"mod-rewrite-working"
|
||||
],
|
||||
"properties": {
|
||||
"pollinterval": {
|
||||
|
@ -113,6 +114,9 @@
|
|||
},
|
||||
"reference-regex": {
|
||||
"type": "string"
|
||||
},
|
||||
"mod-rewrite-working": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,6 +49,7 @@ class CoreCapabilities implements ICapability {
|
|||
* webdav-root: string,
|
||||
* reference-api: boolean,
|
||||
* reference-regex: string,
|
||||
* mod-rewrite-working: boolean,
|
||||
* },
|
||||
* }
|
||||
*/
|
||||
|
@ -59,6 +60,7 @@ class CoreCapabilities implements ICapability {
|
|||
'webdav-root' => $this->config->getSystemValueString('webdav-root', 'remote.php/webdav'),
|
||||
'reference-api' => true,
|
||||
'reference-regex' => IURLGenerator::URL_REGEX_NO_MODIFIERS,
|
||||
'mod-rewrite-working' => $this->config->getSystemValueBool('htaccess.IgnoreFrontController') || getenv('front_controller_active') === 'true',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue