X-Git-Url: http://git.pjr.cc/?p=gwvp.git;a=blobdiff_plain;f=gwvplib%2Fgwvpgitcontrol.php;fp=gwvplib%2Fgwvpgitcontrol.php;h=6383f9e89c7f4644634374b5149f51480d568620;hp=18956b95d7e35d17078d84d53204807ebfc3d7ae;hb=425b2ddb1c73ca601b616ff9c6ef71d2c6b58b03;hpb=d0216e56e8d414ea31744887a95aab4372bfc156 diff --git a/gwvplib/gwvpgitcontrol.php b/gwvplib/gwvpgitcontrol.php index 18956b9..6383f9e 100644 --- a/gwvplib/gwvpgitcontrol.php +++ b/gwvplib/gwvpgitcontrol.php @@ -30,8 +30,9 @@ function gwvp_repoPermissionCheck($repo, $user) function gwvp_gitBackendInterface_new() { // and this is where i re-code the git backend interface from scratch - global $repo_base, $BASE_URL; + global $BASE_URL; + $repo_base = gwvp_getConfigVal("repodir"); $repo = ""; $newloc = "/"; @@ -50,8 +51,9 @@ function gwvp_gitBackendInterface_new() function gwvp_gitBackendInterface() { - global $repo_base, $BASE_URL; + global $BASE_URL; + $repo_base = gwvp_getConfigVal("repodir"); $repo = ""; $newloc = "/"; @@ -324,7 +326,7 @@ function gwvp_callGitBackend($repo) function gwvp_repoExists($name) { - global $repo_base; + $repo_base = gwvp_getConfigVal("repodir"); if(file_exists("$repo_base/$name.git")) return true; else return false; @@ -336,7 +338,7 @@ function gwvp_repoExists($name) // 2 - only owner can see anything function gwvp_createGitRepo($name, $ownerid, $desc, $bundle=null, $defaultperms=0) { - global $repo_base; + $repo_base = gwvp_getConfigVal("repodir"); // phew, this works, but i tell you this - bundles arent quite as nice as they should be if($bundle == null) {