fixed variable error
authorpk910 <philipp@zoelle1.de>
Sun, 6 Oct 2013 10:43:41 +0000 (12:43 +0200)
committerpk910 <philipp@zoelle1.de>
Sun, 6 Oct 2013 10:43:41 +0000 (12:43 +0200)
GITManagedWebpage.class.php

index 0522cc8ea39ac14b08691be4753000d503ef912a..fee826c0e284d0d24d0bdabac4961f04140e3d49 100644 (file)
@@ -326,7 +326,7 @@ class GITManagedWebpage {
         $default_branch = $this->getConfig("defaultbranch");
         $active_branch = $this->getActiveBranch();
         if($active_branch != $default_branch) {
-            if(!($dir = $this->localBranchPath($branch))) {
+            if(!($dir = $this->localBranchPath($active_branch))) {
                 $dir = $this->localBranchPath($active_branch, true);
                 $this->updateBranch($active_branch, $dir, true);
             }