diff --git a/module/repo/control.php b/module/repo/control.php
index e940ee3a82..bf51c4a382 100644
--- a/module/repo/control.php
+++ b/module/repo/control.php
@@ -1139,17 +1139,12 @@ class repo extends control
* @access public
* @return void
*/
- public function ajaxGetDropMenu($repoID, $type = 'repo', $objectID = 0)
+ public function ajaxGetDropMenu($repoID, $module = 'repo', $method = 'browse')
{
- $repos = $this->repo->getRepoPairs($type, $objectID);
- $reposHtml = "
";
-
- $branches = $this->getBranches($repo);
- if(empty($branches))
- {
- $this->setRepoBranch('');
- }
- else
- {
- $branchID = 'master';
- if($this->cookie->repoBranch) $branchID = $this->cookie->repoBranch;
- if(!isset($branches[$branchID])) $branchID = 'master';
-
- $branch = zget($branches, $branchID);
- if(empty($branch)) $branchID = $branch = current($branches);
-
- $this->setRepoBranch($branchID);
-
- $branchName = isset($branches[$branch]) ? $branches[$branch] : $branches[0];
-
- $dropMenuLink = helper::createLink('repo', 'ajaxGetBranchDropMenu', "repID=$repoID&branchID=" . base64_encode($branchID) . "&objectID=$objectID");
- $output .= "
";
- }
+ $output = $this->lang->repo->common . $this->lang->colon;
+ $output .= "
{$currentRepoName} ";
+ return $output;
}
+ $dropMenuLink = helper::createLink('repo', 'ajaxGetDropMenu', "repoID=$repoID&module=$currentModule&method=$currentMethod");
+
+ $output = "";
+
return $output;
}
@@ -2134,25 +2112,15 @@ class repoModel extends model
* @param string $link
* @param string $scm
* @access public
- * @return void
+ * @return string
*/
public function getReposMenu($repo, $objectID = 0, $link = '', $scm = '')
{
if(empty($link)) $link = helper::createLink('repo', 'browse', "repoID=%s&branchID=&objectID=$objectID");
- $html = "
";
- $html .= "