compatibility PHP 8

This commit is contained in:
plegall
2023-12-21 11:17:18 +01:00
parent ce7748ea92
commit f93323f1cb
3 changed files with 8 additions and 2 deletions

View File

@@ -54,11 +54,13 @@ if (isset($_POST['submit']))
$template->delete_compiled_templates();
}
$img_sizes = array_merge(ImageStdParams::get_all_types(), array('Original'));
$template->assign($conf['SocialButtons']);
$template->assign(array(
'SOCIALBUTT_PATH' => SOCIALBUTT_PATH,
'img_sizes' => array_merge(ImageStdParams::get_all_types(), array('Original')),
'img_sizes' => $img_sizes,
'img_sizes_labels' => array_map('l10n', $img_sizes),
));
$template->set_filename('socialbutt_content', realpath(SOCIALBUTT_PATH . 'template/admin.tpl'));

View File

@@ -15,4 +15,8 @@ $lang['only on photo'] = 'only on photo';
$lang['Community'] = 'Community';
$lang['Light mode'] = 'Light mode';
$lang['When light mode is activated no external script is loaded, it <b>speeds up the load of the page and disables user tracking</b> but also disables annotations and in-page popups.'] = 'When light mode is activated no external script is loaded, it <b>speeds up the load of the page and disables user tracking</b> but also disables annotations and in-page popups.';
$lang['Disable'] = 'Disable';
$lang['Enable'] = 'Enable';
$lang['Via'] = 'Via';
$lang['Shared picture size'] = 'Shared picture size';
?>

View File

@@ -78,7 +78,7 @@ jQuery(".showInfo").tipTip({
{'Shared picture size'|translate}
</td>
<td>
{html_options name="img_size" values=$img_sizes output=$img_sizes|translate selected=$img_size}
{html_options name="img_size" values=$img_sizes output=$img_sizes_labels selected=$img_size}
</td>
</tr>
<tr class="property">