mirror of
https://github.com/unraid/webgui.git
synced 2026-01-24 18:49:17 -06:00
Fixed version/date extraction in previous unRAID version
This commit is contained in:
@@ -22,7 +22,8 @@ $version = $date = 'unknown';
|
||||
if (file_exists('/boot/previous/changes.txt')) {
|
||||
exec("head -n4 /boot/previous/changes.txt",$rows);
|
||||
foreach ($rows as $row) {
|
||||
if ($i = stripos($row,'version')!==false) {
|
||||
$i = stripos($row,'version');
|
||||
if ($i !== false) {
|
||||
list($version,$date) = explode(' ',trim(substr($row,$i+7)));
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user