Skip to content

Commit

Permalink
Wrong Update Informaion in Admin Panel after installing the TeslaFlee…
Browse files Browse the repository at this point in the history
…tAPI #1173

#1173
  • Loading branch information
bassmaster187 committed Feb 2, 2024
1 parent a21db52 commit 3a499ea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion TeslaLogger/www/admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,15 @@ function checkForUpdates()
else
$installed = getTeslaloggerVersion("/etc/teslalogger/git/TeslaLogger/Properties/AssemblyInfo.cs");

$onlineversion = getTeslaloggerVersion("https://raw.githubusercontent.com/bassmaster187/TeslaLogger/master/TeslaLogger/Properties/AssemblyInfo.cs");
$branch = file_get_contents("/etc/teslalogger/BRANCH");

if (!empty($branch))
{
echo("<font color='red'>$branch</font>/");
$onlineversion = getTeslaloggerVersion("https://raw.githubusercontent.com/bassmaster187/TeslaLogger/$branch/TeslaLogger/Properties/AssemblyInfo.cs");
}
else
$onlineversion = getTeslaloggerVersion("https://raw.githubusercontent.com/bassmaster187/TeslaLogger/master/TeslaLogger/Properties/AssemblyInfo.cs");

if ($installed != $onlineversion)
{
Expand Down

0 comments on commit 3a499ea

Please sign in to comment.