Skip to content

Commit

Permalink
Update configuration.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Mar 11, 2024
1 parent 31127c6 commit 9af0d12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugin_info/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@
}
$lastV = file_get_contents('https://raw.githubusercontent.com/Koenkk/zigbee2mqtt/master/package.json');
if ($lastV !== false) {
$V = json_decode($lastV, true);
if (is_array($V) && json_last_error() == '' && isset($V['version']) && $package['version'] !== $V['version']) {
echo '<br/><img src="https://img.shields.io/github/v/release/koenkk/zigbee2mqtt.svg"/> disponible <small>(Vous devez relancer les dépendances pour mettre à jour)</small>';
}
}
$V = json_decode($lastV, true);
if (is_array($V) && json_last_error() == '' && isset($V['version']) && $package['version'] !== $V['version']) {
echo '<br/><img src="https://img.shields.io/github/v/release/koenkk/zigbee2mqtt.svg"/> disponible <small>(Vous devez relancer les dépendances pour mettre à jour)</small>';
}
}
?>
</div>
</div>
Expand Down

0 comments on commit 9af0d12

Please sign in to comment.