Execute only for web and not for CLI
This commit is contained in:
parent
361093fb7b
commit
4d9af08f12
|
@ -167,7 +167,6 @@ class OC {
|
|||
// a web URL, so we use overwritewebroot as a fallback.
|
||||
OC::$WEBROOT = OC_Config::getValue('overwritewebroot', '');
|
||||
}
|
||||
}
|
||||
|
||||
// Resolve /owncloud to /owncloud/ to ensure to always have a trailing
|
||||
// slash which is required by URL generation.
|
||||
|
@ -176,6 +175,7 @@ class OC {
|
|||
header('Location: '.\OC::$WEBROOT.'/');
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
// search the 3rdparty folder
|
||||
OC::$THIRDPARTYROOT = OC_Config::getValue('3rdpartyroot', null);
|
||||
|
|
Loading…
Reference in New Issue