translate some left metadata

This commit is contained in:
coderkun 2015-09-12 20:55:43 +02:00
commit 88f94709d1

View file

@ -259,21 +259,21 @@
*/ */
private function detectRequest() private function detectRequest()
{ {
// URL ermitteln // Get URL
$url = isset($_GET) && array_key_exists('url', $_GET) ? $_GET['url'] : ''; $url = isset($_GET) && array_key_exists('url', $_GET) ? $_GET['url'] : '';
$url = trim($url, '/'); $url = trim($url, '/');
// Routes anwenden // Apply routes
$url = $this->applyRoutes($url, $this->routes); $url = $this->applyRoutes($url, $this->routes);
// URL splitten // Split URL
$params = explode('/', $url); $params = explode('/', $url);
if(empty($params[0])) { if(empty($params[0])) {
$params = array(); $params = array();
} }
// Parameter speichern // Save parameters
$this->params = $params; $this->params = $params;
} }