You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public_html/lists/admin/index.php
+10-9
Original file line number
Diff line number
Diff line change
@@ -523,24 +523,25 @@ function mb_strtolower($string)
523
523
echoInfo($GLOBALS['I18N']->get('Running in testmode, no emails will be sent. Check your config file.'));
524
524
}
525
525
526
-
# if (!DEVVERSION) { ## why not, quite useful to see
527
-
if (ALLOW_UPDATER) {
526
+
if (ALLOW_UPDATER || $updaterplugin) {
528
527
$updaterdir = __DIR__ . '/../updater';
529
528
530
529
include'updateLib.php';
531
530
$updateNotif = checkForUpdate();
532
-
$moreInfo = ' <ul><li><a href="https://www.phplist.com/download?utm_source=pl' . VERSION . '&utm_medium=updatedownload&utm_campaign=phpList" title="' . s('Download the new version') . '" target="_blank">' . s('Download the new version') . '</a></li>';
533
531
534
-
if (file_exists($updaterdir)) {
535
-
$moreInfo .= '<li>'.s('or use the %sphpList Updater%s','<a href="?page=update" title="' . s('automatic updater') . '">','</a>');
536
-
}
537
-
$moreInfo .= '</ul>';
532
+
if ($updateNotif !== '' && $_GET['page'] !== 'update') {
533
+
$moreInfo = ' <ul><li><a href="https://www.phplist.com/download?utm_source=pl' . VERSION . '&utm_medium=updatedownload&utm_campaign=phpList" title="' . s('Download the new version') . '" target="_blank">' . s('Download the new version') . '</a></li>';
538
534
539
-
if ($updateNotif !== '') {
535
+
if ($updaterplugin) {
536
+
$class = get_class($updaterplugin);
537
+
$moreInfo .= '<li>'.s('or use the %sphpList Updater%s', sprintf('<a href="?page=update&pi=%s" title="', $class) . s('automatic updater') . '">','</a>');
538
+
} elseif (file_exists($updaterdir)) {
539
+
$moreInfo .= '<li>'.s('or use the %sphpList Updater%s','<a href="?page=update" title="' . s('automatic updater') . '">','</a>');
540
+
}
541
+
$moreInfo .= '</ul>';
540
542
Info($updateNotif . '' . $moreInfo);
541
543
}
542
544
}
543
-
# }
544
545
545
546
if (version_compare(PHP_VERSION, '5.3.3', '<') && WARN_ABOUT_PHP_SETTINGS) {
546
547
Error(s('Your PHP version is out of date. phpList requires PHP version 5.3.3 or higher.'));
0 commit comments