This commit is contained in:
danpros 2024-07-15 18:23:17 +07:00
commit c33f462c06
2 changed files with 10 additions and 0 deletions

View file

@ -54,6 +54,12 @@ if (empty($defaultFormat)) {
?>
<h2><?php echo i18n('Metatags_Settings');?></h2>
<br>
<?php if (!extension_loaded('gd')) { ?>
<div class="callout callout-info">
<h5><i class="fa fa-info"></i> Note:</h5>
Please install and enable the GD extension to use the thumbnail feature.
</div>
<?php } ?>
<nav>
<div class="nav nav-tabs" id="nav-tab">
<a class="nav-item nav-link" id="nav-general-tab" href="<?php echo site_url();?>admin/config"><?php echo i18n('General');?></a>

View file

@ -627,6 +627,10 @@ function flash($key, $msg = null, $now = false)
function create_thumb($src, $desired_width = null, $desired_height = null) {
if (!extension_loaded('gd')) {
return $src;
}
$dir = 'content/images/thumbnails';
if (!is_dir($dir)) {