Fixed more template errors in order to get everything running with PHP 8.0.

Also: Fixed some PHP errors in BBCode plugin and Calender plugin.
Thanks for reporting, Matthias!
This commit is contained in:
azett 2021-02-07 12:10:19 +01:00
parent 15d11bd933
commit 8b5a2cbd57
3 changed files with 9 additions and 8 deletions

View File

@ -32,7 +32,8 @@
<select name="category" class="alignleft">
<option label="Unfiltered" value="all">{$panelstrings.nofilter}</option>
{*html_options options=$lang.entry.flags.short selected=$smarty.request.cat*}
{html_options options=$categories_all selected=$smarty.request.category}
{if isset($smarty.request.category)} {assign var=category value=$smarty.request.category} {else} {assign var=category value=""}{/if}
{html_options options=$categories_all selected=$category}
</select>
{html_submit name='filter' id='filter' class="alignright" value=$panelstrings.filterbtn}
</fieldset>

View File

@ -191,9 +191,11 @@ function do_bbcode_img($action, $attributes, $content, $params, $node_object) {
// tiffs won't be supported
if (is_array($img_info)) {
$iptc = iptcparse($img_info ["APP13"]);
$title = @$iptc ["2#005"] [0] ? wp_specialchars($iptc ["2#005"] [0]) : $title;
$alt = isset($iptc ["2#120"] [0]) ? wp_specialchars($iptc ["2#120"] [0], 1) : $title;
if (isset($img_info ["APP13"])) {
$iptc = iptcparse($img_info ["APP13"]);
$title = @$iptc ["2#005"] [0] ? wp_specialchars($iptc ["2#005"] [0]) : $title;
$alt = isset($iptc ["2#120"] [0]) ? wp_specialchars($iptc ["2#120"] [0], 1) : $title;
}
}
}
}

View File

@ -85,9 +85,9 @@ function plugin_calendar_widget() {
$days = array();
while ($q->hasmore($queryId)) {
while ($q->hasmore()) {
list ($id, $entry) = $q->getEntry($queryId);
list ($id, $entry) = $q->getEntry();
$date = date_from_id($id);
$d = (int) $date ['d'];
@ -95,8 +95,6 @@ function plugin_calendar_widget() {
get_day_link($y, $m, str_pad($d, 2, '0', STR_PAD_LEFT)),
'linked-day'
);
$count++;
}
// load plugin strings