Warn about the old OCP\API::register construct for OCS
* Add sleep * Add log message Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
6e29b8731e
commit
e628424ccf
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ try {
|
||||||
OC_App::loadApps();
|
OC_App::loadApps();
|
||||||
|
|
||||||
OC::$server->getRouter()->match('/ocs'.\OC::$server->getRequest()->getRawPathInfo());
|
OC::$server->getRouter()->match('/ocs'.\OC::$server->getRequest()->getRawPathInfo());
|
||||||
|
|
||||||
|
sleep(1);
|
||||||
|
OC::$server->getLogger()->info('This uses an old OCP\API::register construct. This will be removed in a future version of Nextcloud. Please migrate to the OCSController');
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} catch (ResourceNotFoundException $e) {
|
} catch (ResourceNotFoundException $e) {
|
||||||
// Fall through the not found
|
// Fall through the not found
|
||||||
|
|
Loading…
Reference in a new issue