/**
  * Examine url and set correct module to load
  */
 public function setModuleInfo($route = null)
 {
     if ($route) {
         return;
     }
     // get URI info
     $info = uri::getInfo();
     // check if user already is denied
     if (isset(self::$status[403]) || isset(self::$status[404])) {
         $this->setErrorModuleInfo();
         return;
     }
     // if no module base exists we load fronpage module
     if (empty($info['module_base'])) {
         $this->setHomeModuleInfo();
         return;
     }
     // move info from uri to this->info
     $this->info['module_name'] = $info['module_name'];
     $this->info['module_base_name'] = $info['module_base_name'];
     $this->info['module_class'] = "modules\\" . str_replace('/', '\\', $this->info['module_name']) . "\\module";
     $this->info['controller'] = $info['controller'];
     // check if module is installed
     if (!self::isInstalledModule($this->info['module_base_name'])) {
         self::$status[404] = 1;
         $this->setErrorModuleInfo();
     }
 }