Skip to content

Commit 30bc368

Browse files
authored
Merge pull request #1687 from nextcloud/backport-1638-allow-cross-repository-execution-9
[stable9] Allow to call the files even when you are in another instance atm
2 parents 6fdef86 + f908fed commit 30bc368

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545

4646
try {
47-
require_once 'lib/base.php';
47+
require_once __DIR__ . '/lib/base.php';
4848

4949
// set to run indefinitely if needed
5050
set_time_limit(0);

cron.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
try {
3535

36-
require_once 'lib/base.php';
36+
require_once __DIR__ . '/lib/base.php';
3737

3838
if (\OCP\Util::needUpgrade()) {
3939
\OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG);

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
}
4343

4444
try {
45-
46-
require_once 'lib/base.php';
45+
46+
require_once __DIR__ . '/lib/base.php';
4747

4848
OC::handleRequest();
4949

ocs-provider/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
*
2020
*/
2121

22-
require_once('../lib/base.php');
23-
require_once(__DIR__ . '/provider.php');
22+
require_once __DIR__ . '/../lib/base.php';
23+
require_once __DIR__ . '/provider.php';
2424

2525
header('Content-Type: application/json');
2626

ocs/providers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*/
2525

26-
require_once '../lib/base.php';
26+
require_once __DIR__ . '/../lib/base.php';
2727

2828
header('Content-type: application/xml');
2929

ocs/v1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
*
2929
*/
3030

31-
require_once '../lib/base.php';
31+
require_once __DIR__ . '/../lib/base.php';
3232

3333
if (\OCP\Util::needUpgrade()
3434
|| \OC::$server->getSystemConfig()->getValue('maintenance', false)

ocs/v2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
*
2121
*/
2222

23-
require_once 'v1.php';
23+
require_once __DIR__ . '/v1.php';

public.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
try {
2929

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

remote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function handleException(Exception $e) {
8686
}
8787

8888
try {
89-
require_once 'lib/base.php';
89+
require_once __DIR__ . '/lib/base.php';
9090

9191
if (\OCP\Util::needUpgrade()) {
9292
// since the behavior of apps or remotes are unpredictable during

status.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
try {
3131

32-
require_once 'lib/base.php';
32+
require_once __DIR__ . '/lib/base.php';
3333

3434
$systemConfig = \OC::$server->getSystemConfig();
3535

0 commit comments

Comments
 (0)