Don't try to use routes when called from cli

This commit is contained in:
Robin Appelman 2013-02-07 17:53:38 +01:00
parent 6cff5418a7
commit afa1a6d2b3
1 changed files with 10 additions and 8 deletions

View File

@ -554,6 +554,7 @@ class OC {
self::checkUpgrade();
}
if (!self::$CLI) {
try {
OC::getRouter()->match(OC_Request::getPathInfo());
return;
@ -563,6 +564,7 @@ class OC {
OC_Response::setStatus(405);
return;
}
}
$app = OC::$REQUESTEDAPP;
$file = OC::$REQUESTEDFILE;