@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use PSFS\base\config\Config; |
6 | 6 | use PSFS\base\config\LoginForm; |
7 | -use PSFS\base\Router; |
|
8 | 7 | use PSFS\base\Template; |
9 | 8 | use PSFS\base\types\AuthAdminController; |
10 | 9 | use PSFS\controller\UserController; |
@@ -69,16 +69,16 @@ |
||
69 | 69 | if (!Request::getInstance()->isFile()) { |
70 | 70 | return $this->router->execute($this->actualUri); |
71 | 71 | } |
72 | - } else { |
|
72 | + }else { |
|
73 | 73 | return ConfigController::getInstance()->config(); |
74 | 74 | } |
75 | - } catch (AdminCredentialsException $a) { |
|
75 | + }catch (AdminCredentialsException $a) { |
|
76 | 76 | return UserController::showAdminManager(); |
77 | - } catch (SecurityException $s) { |
|
77 | + }catch (SecurityException $s) { |
|
78 | 78 | return $this->security->notAuthorized($this->actualUri); |
79 | - } catch (RouterException $r) { |
|
79 | + }catch (RouterException $r) { |
|
80 | 80 | return $this->router->httpNotFound($r); |
81 | - } catch (\Exception $e) { |
|
81 | + }catch (\Exception $e) { |
|
82 | 82 | return $this->dumpException($e); |
83 | 83 | } |
84 | 84 | } |