diff options
Diffstat (limited to 'application/PageBuilder.php')
-rw-r--r-- | application/PageBuilder.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/application/PageBuilder.php b/application/PageBuilder.php index 5da70811..b1abe0d0 100644 --- a/application/PageBuilder.php +++ b/application/PageBuilder.php | |||
@@ -1,6 +1,7 @@ | |||
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | use Shaarli\Config\ConfigManager; | 3 | use Shaarli\Config\ConfigManager; |
4 | use Shaarli\Thumbnailer; | ||
4 | 5 | ||
5 | /** | 6 | /** |
6 | * This class is in charge of building the final page. | 7 | * This class is in charge of building the final page. |
@@ -119,7 +120,10 @@ class PageBuilder | |||
119 | $this->tpl->assign('tags', $this->linkDB->linksCountPerTag()); | 120 | $this->tpl->assign('tags', $this->linkDB->linksCountPerTag()); |
120 | } | 121 | } |
121 | 122 | ||
122 | $this->tpl->assign('thumbnails_enabled', $this->conf->get('thumbnails.enabled')); | 123 | $this->tpl->assign( |
124 | 'thumbnails_enabled', | ||
125 | $this->conf->get('thumbnails.mode', Thumbnailer::MODE_NONE) !== Thumbnailer::MODE_NONE | ||
126 | ); | ||
123 | $this->tpl->assign('thumbnails_width', $this->conf->get('thumbnails.width')); | 127 | $this->tpl->assign('thumbnails_width', $this->conf->get('thumbnails.width')); |
124 | $this->tpl->assign('thumbnails_height', $this->conf->get('thumbnails.height')); | 128 | $this->tpl->assign('thumbnails_height', $this->conf->get('thumbnails.height')); |
125 | 129 | ||