mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 03:10:18 +01:00
Decide whether FTL is on any custom branch by looking for "vDev" in the beginning of the version string
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -44,12 +44,12 @@ else
|
||||
|
||||
/********** Get Pi-hole FTL (not a git repository) **********/
|
||||
$FTL_branch = $branches[2];
|
||||
if($FTL_branch !== "master") {
|
||||
if(substr($versions[2], 0, 4) === "vDev") {
|
||||
$FTL_current = "vDev";
|
||||
$FTL_commit = $versions[2];
|
||||
}
|
||||
else {
|
||||
$FTL_current = explode("-",$versions[2])[0];
|
||||
$FTL_current = $versions[2];
|
||||
}
|
||||
|
||||
// Get data from GitHub
|
||||
|
||||
Reference in New Issue
Block a user