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:
parent
2f546eab71
commit
f908feddb5
|
@ -44,7 +44,7 @@ if (version_compare(PHP_VERSION, '5.4.0') === -1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
require_once 'lib/base.php';
|
require_once __DIR__ . '/lib/base.php';
|
||||||
|
|
||||||
// set to run indefinitely if needed
|
// set to run indefinitely if needed
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
2
cron.php
2
cron.php
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
require_once 'lib/base.php';
|
require_once __DIR__ . '/lib/base.php';
|
||||||
|
|
||||||
if (\OCP\Util::needUpgrade()) {
|
if (\OCP\Util::needUpgrade()) {
|
||||||
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG);
|
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG);
|
||||||
|
|
|
@ -42,8 +42,8 @@ if (version_compare(PHP_VERSION, '7.1.0') !== -1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
require_once 'lib/base.php';
|
require_once __DIR__ . '/lib/base.php';
|
||||||
|
|
||||||
OC::handleRequest();
|
OC::handleRequest();
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once('../lib/base.php');
|
require_once __DIR__ . '/../lib/base.php';
|
||||||
require_once(__DIR__ . '/provider.php');
|
require_once __DIR__ . '/provider.php';
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once '../lib/base.php';
|
require_once __DIR__ . '/../lib/base.php';
|
||||||
|
|
||||||
header('Content-type: application/xml');
|
header('Content-type: application/xml');
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once '../lib/base.php';
|
require_once __DIR__ . '/../lib/base.php';
|
||||||
|
|
||||||
if (\OCP\Util::needUpgrade()
|
if (\OCP\Util::needUpgrade()
|
||||||
|| \OC::$server->getSystemConfig()->getValue('maintenance', false)
|
|| \OC::$server->getSystemConfig()->getValue('maintenance', false)
|
||||||
|
|
|
@ -20,4 +20,4 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'v1.php';
|
require_once __DIR__ . '/v1.php';
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
|
|
||||||
require_once 'lib/base.php';
|
require_once __DIR__ . '/lib/base.php';
|
||||||
if (\OCP\Util::needUpgrade()) {
|
if (\OCP\Util::needUpgrade()) {
|
||||||
// since the behavior of apps or remotes are unpredictable during
|
// since the behavior of apps or remotes are unpredictable during
|
||||||
// an upgrade, return a 503 directly
|
// an upgrade, return a 503 directly
|
||||||
|
|
|
@ -86,7 +86,7 @@ function handleException(Exception $e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
require_once 'lib/base.php';
|
require_once __DIR__ . '/lib/base.php';
|
||||||
|
|
||||||
if (\OCP\Util::needUpgrade()) {
|
if (\OCP\Util::needUpgrade()) {
|
||||||
// since the behavior of apps or remotes are unpredictable during
|
// since the behavior of apps or remotes are unpredictable during
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
require_once 'lib/base.php';
|
require_once __DIR__ . '/lib/base.php';
|
||||||
|
|
||||||
$systemConfig = \OC::$server->getSystemConfig();
|
$systemConfig = \OC::$server->getSystemConfig();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue