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:
parent
15d11bd933
commit
8b5a2cbd57
@ -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>
|
||||
|
@ -191,6 +191,7 @@ function do_bbcode_img($action, $attributes, $content, $params, $node_object) {
|
||||
// tiffs won't be supported
|
||||
|
||||
if (is_array($img_info)) {
|
||||
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;
|
||||
@ -198,6 +199,7 @@ function do_bbcode_img($action, $attributes, $content, $params, $node_object) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$orig_w = $width = isset($img_size [0]) ? $img_size [0] : 0;
|
||||
$orig_h = $height = isset($img_size [1]) ? $img_size [1] : 0;
|
||||
$thumbpath = null;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user