Skip to content

Commit

Permalink
Allow to call the files even when you are in another instance atm
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Oct 6, 2016
1 parent ff3e8c2 commit f3319f6
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion console.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
}

try {
require_once 'lib/base.php';

require_once __DIR__ . '/lib/base.php';

OC::handleRequest();

Expand Down
2 changes: 1 addition & 1 deletion ocs-provider/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
*/

require_once('../lib/base.php');
require_once __DIR__ . '/../lib/base.php';

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

Expand Down
2 changes: 1 addition & 1 deletion ocs/providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
*/

require_once '../lib/base.php';
require_once __DIR__ . '/../lib/base.php';

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

Expand Down
2 changes: 1 addition & 1 deletion ocs/v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ocs/v2.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
*
*/

require_once 'v1.php';
require_once __DIR__ . '/v1.php';
2 changes: 1 addition & 1 deletion public.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion status.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

try {

require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';

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

Expand Down

0 comments on commit f3319f6

Please sign in to comment.