summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorFelix Epp <work@felixepp.de>2016-10-01 12:17:55 +0200
committerFelix A. Epp <work@felixepp.de>2016-11-16 22:28:49 +0100
commit1614b310ef0e4871dc5f21630e887010e0fb22bc (patch)
tree5a0780404a0920375a249613c9452b01e7766387 /lib/private/legacy
parent50929751b05e9ff09ecad7dde733178f7120e77c (diff)
downloadnextcloud-server-1614b310ef0e4871dc5f21630e887010e0fb22bc.tar.gz
nextcloud-server-1614b310ef0e4871dc5f21630e887010e0fb22bc.zip
Add system config htaccess.IgnoreFrontController for prettyURLs w/o mod_env
Added the system config which sets all conditions to true that query the FrontControllerActive mod_env variable. Signed-off-by: Felix A. Epp <work@felixepp.de>
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/util.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 3bd5b5586ab..cc665b5ec65 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -14,6 +14,7 @@
* @author Christoph Wurst <christoph@owncloud.com>
* @author Clark Tomlinson <fallen013@gmail.com>
* @author cmeh <cmeh@users.noreply.github.com>
+ * @author Felix Anand Epp <work@felixepp.de>
* @author Florin Peter <github@florin-peter.de>
* @author Frank Karlitschek <frank@karlitschek.de>
* @author Georg Ehrke <georg@owncloud.com>
@@ -524,7 +525,7 @@ class OC_Util {
*
* @param string $application application id
* @param string $languageCode language code, defaults to the current language
- * @param bool $prepend prepend the Script to the beginning of the list
+ * @param bool $prepend prepend the Script to the beginning of the list
*/
public static function addTranslations($application, $languageCode = null, $prepend = false) {
if (is_null($languageCode)) {
@@ -569,7 +570,7 @@ class OC_Util {
*
* @param string $application application id
* @param bool $prepend prepend the file to the beginning of the list
- * @param string $path
+ * @param string $path
* @param string $type (script or style)
* @return void
*/
@@ -1076,7 +1077,7 @@ class OC_Util {
}
}
- if(getenv('front_controller_active') === 'true') {
+ if(\OC::$server->getConfig()->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true') {
$location = $urlGenerator->getAbsoluteURL('/apps/' . $appId . '/');
} else {
$location = $urlGenerator->getAbsoluteURL('/index.php/apps/' . $appId . '/');