diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -632,6 +632,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager, | |||
632 | $PAGE->assign($key, $value); | 632 | $PAGE->assign($key, $value); |
633 | } | 633 | } |
634 | 634 | ||
635 | |||
635 | $PAGE->renderPage('picwall'); | 636 | $PAGE->renderPage('picwall'); |
636 | exit; | 637 | exit; |
637 | } | 638 | } |
@@ -1015,9 +1016,11 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager, | |||
1015 | $conf->set('translation.language', escape($_POST['language'])); | 1016 | $conf->set('translation.language', escape($_POST['language'])); |
1016 | 1017 | ||
1017 | $thumbnailsMode = extension_loaded('gd') ? $_POST['enableThumbnails'] : Thumbnailer::MODE_NONE; | 1018 | $thumbnailsMode = extension_loaded('gd') ? $_POST['enableThumbnails'] : Thumbnailer::MODE_NONE; |
1018 | if ($conf->get('thumbnails.enabled', Thumbnailer::MODE_NONE) !== Thumbnailer::MODE_NONE) { | 1019 | if ($thumbnailsMode !== Thumbnailer::MODE_NONE |
1020 | && $thumbnailsMode !== $conf->get('thumbnails.mode', Thumbnailer::MODE_NONE) | ||
1021 | ) { | ||
1019 | $_SESSION['warnings'][] = t( | 1022 | $_SESSION['warnings'][] = t( |
1020 | 'You have enabled or changed thumbnails mode. <a href="?do=thumbs_update">Please synchonize them</a>.' | 1023 | 'You have enabled or changed thumbnails mode. <a href="?do=thumbs_update">Please synchronize them</a>.' |
1021 | ); | 1024 | ); |
1022 | } | 1025 | } |
1023 | $conf->set('thumbnails.mode', $thumbnailsMode); | 1026 | $conf->set('thumbnails.mode', $thumbnailsMode); |
@@ -1517,7 +1520,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager, | |||
1517 | $ids[] = $link['id']; | 1520 | $ids[] = $link['id']; |
1518 | } | 1521 | } |
1519 | $PAGE->assign('ids', $ids); | 1522 | $PAGE->assign('ids', $ids); |
1520 | $PAGE->assign('pagetitle', t('Thumbnail update') .' - '. $conf->get('general.title', 'Shaarli')); | 1523 | $PAGE->assign('pagetitle', t('Thumbnails update') .' - '. $conf->get('general.title', 'Shaarli')); |
1521 | $PAGE->renderPage('thumbnails'); | 1524 | $PAGE->renderPage('thumbnails'); |
1522 | exit; | 1525 | exit; |
1523 | } | 1526 | } |