public function display() { $git_php_viewer = new GitViews_GitPhpViewer($this->repository, $this->controller->getPlugin()->getConfigurationParameter('gitphp_path')); if ($this->request->get('noheader') == 1) { $view = new GitViews_ShowRepo_Download($git_php_viewer); } else { $view = new GitViews_ShowRepo_Content($this->repository, $git_php_viewer, $this->request->getCurrentUser(), $this->controller, $this->url_manager, $this->driver_factory, $this->gerrit_usermanager, $this->mirror_data_mapper, $this->gerrit_servers, $this->controller->getPlugin()->getThemePath()); } $view->display(); }
private function getMasterLocationName() { $name = $this->controller->getPlugin()->getConfigurationParameter('master_location_name'); if (!$name) { $name = $GLOBALS['Language']->getText('plugin_git', 'default_location'); } return $name; }