Skip to content

Commit db9ecc3

Browse files
committed
Added theme update notification
1 parent 4c8f828 commit db9ecc3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/views/studio/theme.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@
140140
$verNr = substr($matches[0][0],15);}
141141
142142
$themeVe = NULL;
143-
$GLOBALS['updateAv'] = NULL;
144143
145144
if ($entry != "." && $entry != "..") {
146145
echo '<tr>';
@@ -204,7 +203,10 @@
204203
<a href="{{url('update/theme')}}" class="mt-3 ml-3 btn btn-info">Update themes</a><br><br>
205204
</details>
206205

207-
@if($GLOBALS['updateAv'] == true)<img style="padding-left:40px; padding-top:15px; scale: 1.5;" src="https://img.shields.io/static/v1?label=&message=A theme needs updating&color=brightgreen">@endif
206+
<?php
207+
try{ if($GLOBALS['updateAv'] == true) echo '<img style="padding-left:40px; padding-top:15px; scale: 1.5;" src="https://img.shields.io/static/v1?label=&message=A theme needs updating&color=brightgreen">';
208+
}catch(Exception $ex){}
209+
?>
208210

209211
@endif
210212

0 commit comments

Comments
 (0)