mirror of
https://github.com/nextcloud/server.git
synced 2026-07-14 20:39:17 -04:00
Merge pull request #7917 from nextcloud/warn_old_ocs_route_cons
Warn about the old OCP\API::register construct for OCS
This commit is contained in:
commit
f39f95e4e8
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue