/** * Get message controller * * @return GitPHP_ControllerBase */ public function GetMessageController() { $params = $this->QueryVarArrayToParameterArray($_GET); if (!empty($_GET['q'])) { $restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']); if (count($restparams) > 0) { $params = array_merge($params, $restparams); } } $controller = new GitPHP_Controller_Message(); foreach ($params as $paramname => $paramval) { if ($paramname !== 'action') { $controller->SetParam($paramname, $paramval); } } $controller->SetRouter($this); return $controller; }