Example #1
0
 /**
  * Checks for special routes
  * (routes like index.php?lng=en)
  *
  * @return void
  */
 private function _checkSpecialRoute()
 {
     $url = Request::getServerURLClean();
     $pos = strpos($url, "?");
     if ($pos !== false) {
         $params = Request::getGetParams();
         if (isset($params["lng"])) {
             $locale = $params["lng"];
             i18n::setLocale($locale);
             Dispatcher::redirectToIndex();
             exit(0);
         }
     }
 }