]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixed error that displayed a white page and a warning that routes could not be loaded...
authorBernhard Posselt <nukeawhale@gmail.com>
Mon, 7 Jan 2013 14:34:42 +0000 (15:34 +0100)
committerBernhard Posselt <nukeawhale@gmail.com>
Mon, 7 Jan 2013 14:34:42 +0000 (15:34 +0100)
lib/router.php

index 27e14c38abf0aef0773017232af51236bb6ee984..070d31999b11f11188b24d2c34c9d03bbd5ad873 100644 (file)
@@ -58,23 +58,6 @@ class OC_Router {
         * loads the api routes
         */
        public function loadRoutes() {
-
-               // TODO cache
-               $this->root = $this->getCollection('root');
-               foreach(OC_APP::getEnabledApps() as $app){
-                       $file = OC_App::getAppPath($app).'/appinfo/routes.php';
-                       if(file_exists($file)){
-                               $this->useCollection($app);
-                               require_once($file);
-                               $collection = $this->getCollection($app);
-                               $this->root->addCollection($collection, '/apps/'.$app);
-                       }
-               }
-               // include ocs routes
-               require_once(OC::$SERVERROOT.'/ocs/routes.php');
-               $collection = $this->getCollection('ocs');
-               $this->root->addCollection($collection, '/ocs');
-
                foreach($this->getRoutingFiles() as $app => $file) {
                        $this->useCollection($app);
                        require_once $file;