aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-07-17 13:13:26 +0200
committerArthurHoaro <arthur@hoa.ro>2018-07-17 13:16:50 +0200
commit7b4fea0e39be9e74e9aef13e73af9bbd2b1a6397 (patch)
treea9c5071ed1f6830adcbf10668a2f21e044276842 /index.php
parentb302b3c584b84f22f0e6f187b072180ecbacdfab (diff)
downloadShaarli-7b4fea0e39be9e74e9aef13e73af9bbd2b1a6397.tar.gz
Shaarli-7b4fea0e39be9e74e9aef13e73af9bbd2b1a6397.tar.zst
Shaarli-7b4fea0e39be9e74e9aef13e73af9bbd2b1a6397.zip
Bunch of improvement for thumbnails integration:
- add a default thumb size value (125x90px) - improve private vertical bar visual, especially with thumbnails - translations - add a sync thumbs button in tool and empty picwall page - fixes WT download mode in JSON config
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/index.php b/index.php
index 299d6d9b..ac0baf7d 100644
--- a/index.php
+++ b/index.php
@@ -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 }