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

* Add sleep
* Add log message

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/7917/head
Roeland Jago Douma 6 years ago
parent 6e29b8731e
commit e628424ccf
No known key found for this signature in database
GPG Key ID: F941078878347C0C

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

Loading…
Cancel
Save