Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ocs
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-17 17:18:22 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-17 17:18:22 +0300
commite628424ccf284da2b26fde8ed6f9f2daea64755a (patch)
treef1c229738faf1855eaf33459f90e648db9498618 /ocs
parent6e29b8731e25526442d9b878a5a6ae75afc4075e (diff)
Warn about the old OCP\API::register construct for OCS
* Add sleep * Add log message Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index b6ed5697a69..fb996d0564d 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -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