reset collection to 'root' after adding a route to the api

remotes/origin/fix-10825
Jörn Friedrich Dreyer 11 years ago
parent 12420d08e2
commit dd20b9f672
  1. 1
      lib/private/api.php

@ -72,6 +72,7 @@ class OC_API {
->requirements($requirements)
->action('OC_API', 'call');
self::$actions[$name] = array();
OC::$server->getRouter()->useCollection('root');
}
self::$actions[$name][] = array('app' => $app, 'action' => $action, 'authlevel' => $authLevel);
}

Loading…
Cancel
Save