Allow to call the files even when you are in another instance atm

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2016-10-06 12:13:02 +02:00
parent ff3e8c2139
commit f3319f6294
No known key found for this signature in database
GPG key ID: E166FD8976B3BAC8
10 changed files with 11 additions and 11 deletions

View file

@ -45,7 +45,7 @@ function exceptionHandler($exception) {
exit(1);
}
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
// set to run indefinitely if needed
set_time_limit(0);

View file

@ -32,7 +32,7 @@
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
if (\OCP\Util::needUpgrade()) {
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG);

View file

@ -34,8 +34,8 @@ if (version_compare(PHP_VERSION, '5.6.0') === -1) {
}
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
OC::handleRequest();

View file

@ -19,7 +19,7 @@
*
*/
require_once('../lib/base.php');
require_once __DIR__ . '/../lib/base.php';
header('Content-Type: application/json');

View file

@ -23,7 +23,7 @@
*
*/
require_once '../lib/base.php';
require_once __DIR__ . '/../lib/base.php';
header('Content-type: application/xml');

View file

@ -29,7 +29,7 @@
*
*/
require_once '../lib/base.php';
require_once __DIR__ . '/../lib/base.php';
if (\OCP\Util::needUpgrade()
|| \OC::$server->getSystemConfig()->getValue('maintenance', false)

View file

@ -20,4 +20,4 @@
*
*/
require_once 'v1.php';
require_once __DIR__ . '/v1.php';

View file

@ -29,7 +29,7 @@
*/
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
if (\OCP\Util::needUpgrade()) {
// since the behavior of apps or remotes are unpredictable during
// an upgrade, return a 503 directly

View file

@ -107,7 +107,7 @@ function resolveService($service) {
}
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
// All resources served via the DAV endpoint should have the strictest possible
// policy. Exempted from this is the SabreDAV browser plugin which overwrites

View file

@ -29,7 +29,7 @@
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
$systemConfig = \OC::$server->getSystemConfig();