瀏覽代碼

fix docker whitespace on branch

causefx 7 年之前
父節點
當前提交
31dba7b227
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      api/functions.php

+ 1 - 2
api/functions.php

@@ -28,12 +28,11 @@ if (isset($GLOBALS['dbLocation'])) {
 	}
 	if ($GLOBALS['docker']) {
 		$getBranch = file_get_contents(dirname(__DIR__, 1) . DIRECTORY_SEPARATOR . 'Docker.txt');
-		$getBranch = (empty($getBranch)) ? 'v2-master' : $getBranch;
+		$getBranch = (empty($getBranch)) ? 'v2-master' : trim($getBranch);
 		$GLOBALS['branch'] = $getBranch;
 		$getCommit = file_get_contents(dirname(__DIR__, 1) . DIRECTORY_SEPARATOR . 'Github.txt');
 		$getCommit = (empty($getCommit)) ? 'n/a' : $getCommit;
 		$GLOBALS['commit'] = $getCommit;
-		
 	}
 	//Upgrade Check
 	upgradeCheck();