private function revokeProjectsFromMirror(Git_Mirror_Mirror $mirror, $project_ids) { if (count($project_ids) > 0 && $this->git_mirror_resource_restrictor->revokeProjectsFromMirror($mirror, $project_ids) && $this->git_mirror_mapper->deleteFromDefaultMirrorsInProjects($mirror, $project_ids)) { $GLOBALS['Response']->addFeedback('info', $GLOBALS['Language']->getText('plugin_git', 'mirror_allowed_project_revoke_projects')); $GLOBALS['Response']->redirect('/plugins/git/admin/?pane=mirrors_admin&action=manage-allowed-projects&mirror_id=' . $mirror->id); } $GLOBALS['Response']->addFeedback('error', $GLOBALS['Language']->getText('plugin_git', 'mirror_allowed_project_update_project_list_error')); $GLOBALS['Response']->redirect('/plugins/git/admin/?pane=mirrors_admin&action=manage-allowed-projects&mirror_id=' . $mirror->id); }