Skip to content

Commit b015389

Browse files
committed
update check on var
1 parent b26f8aa commit b015389

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

public_html/lists/admin/home.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
// check for latest version
3333
$checkinterval = sprintf('%d', getConfig('check_new_version'));
34-
if (!isset($checkinterval)) {
34+
if (empty($checkinterval)) {
3535
$checkinterval = 7;
3636
}
3737

@@ -67,11 +67,11 @@
6767

6868
if ($showUpdateAvail) {
6969
echo '<div class="newversion note">';
70-
echo $GLOBALS['I18N']->get('A new version of phpList is available!');
70+
echo s('A new version of phpList is available!');
7171
echo '<br/>';
72-
echo '<br/>'.$GLOBALS['I18N']->get('The new version may have fixed security issues,<br/>so it is recommended to upgrade as soon as possible');
73-
echo '<br/>'.$GLOBALS['I18N']->get('Your version').': <b>'.$thisversion.'</b>';
74-
echo '<br/>'.$GLOBALS['I18N']->get('Latest version').': <b>'.$latestversion.'</b><br/> ';
72+
echo '<br/>'.s('The new version may have fixed security issues,<br/>so it is recommended to upgrade as soon as possible');
73+
echo '<br/>'.s('Your version').': <b>'.$thisversion.'</b>';
74+
echo '<br/>'.s('Latest version').': <b>'.$latestversion.'</b><br/> ';
7575
echo '<a href="https://www.phplist.com/latestchanges?utm_source=pl'.$thisversion.'&amp;utm_medium=updatenews&amp;utm_campaign=phpList" title="'.s('Read what has changed in the new version').'" target="_blank">'.$GLOBALS['I18N']->get('View what has changed').'</a>&nbsp;&nbsp;';
7676
echo '<a href="https://www.phplist.com/download?utm_source=pl'.$thisversion.'&amp;utm_medium=updatedownload&amp;utm_campaign=phpList" title="'.s('Download the new version').'" target="_blank">'.$GLOBALS['I18N']->get('Download').'</a></div>';
7777
}

0 commit comments

Comments
 (0)