Skip to content
Snippets Groups Projects
Unverified Commit e628424c authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Warn about the old OCP\API::register construct for OCS


* Add sleep
* Add log message

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent 6e29b873
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,10 @@ try {
OC_App::loadApps();
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;
} catch (ResourceNotFoundException $e) {
// Fall through the not found
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment