Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable9] Allow to call the files even when you are in another instance atm #1687

Merged
merged 1 commit into from
Oct 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion console.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}

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 @@ -33,7 +33,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 @@ -42,8 +42,8 @@
}

try {
require_once 'lib/base.php';

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

OC::handleRequest();

Expand Down
4 changes: 2 additions & 2 deletions ocs-provider/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
*
*/

require_once('../lib/base.php');
require_once(__DIR__ . '/provider.php');
require_once __DIR__ . '/../lib/base.php';
require_once __DIR__ . '/provider.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 @@ -28,7 +28,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 @@ -27,7 +27,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 @@ -86,7 +86,7 @@ function handleException(Exception $e) {
}

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
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