diff options
Diffstat (limited to 'lib/Minz/FrontController.php')
| -rw-r--r-- | lib/Minz/FrontController.php | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/Minz/FrontController.php b/lib/Minz/FrontController.php index 80fa5ce96..a5f73b59f 100644 --- a/lib/Minz/FrontController.php +++ b/lib/Minz/FrontController.php @@ -36,7 +36,7 @@ class Minz_FrontController { Minz_Request::init(); - $url = $this->buildUrl(); + $url = Minz_Url::build(); $url['params'] = array_merge ( $url['params'], $_POST @@ -51,24 +51,6 @@ class Minz_FrontController { } /** - * Returns an array representing the URL as passed in the address bar - * @return array URL representation - */ - private function buildUrl() { - $url = array(); - - $url['c'] = $_GET['c'] ?? Minz_Request::defaultControllerName(); - $url['a'] = $_GET['a'] ?? Minz_Request::defaultActionName(); - $url['params'] = $_GET; - - // post-traitement - unset($url['params']['c']); - unset($url['params']['a']); - - return $url; - } - - /** * Démarre l'application (lance le dispatcher et renvoie la réponse) */ public function run() { |
