function execute($caveID, $caves) { // create View $view = new Donations_Index_View($_SESSION['player']->language, $_SESSION['player']->template); if ($this->error) { $view->setError($this->error); } return array($view->getTitle(), $view->getContent()); }
function execute($caveID, $caves) { global $params; // create View $view = new Donations_Index_View($params->SESSION->player->language, $params->SESSION->player->template); if ($this->error) { $view->setError($this->error); } return array($view->getTitle(), $view->getContent()); }