mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 03:09:58 +03:00
related to #1693 php8.1 compat for comments in gallery and album edit in admin
This commit is contained in:
parent
8ec890bdb7
commit
1e85985a0c
4 changed files with 5 additions and 4 deletions
|
@ -203,7 +203,7 @@ $sort_fields = array(
|
|||
|
||||
$template->assign('image_order_options', $sort_fields);
|
||||
|
||||
$image_order = explode(',', $category['image_order']);
|
||||
$image_order = explode(',', isset($category['image_order']) ? $category['image_order'] : "");
|
||||
|
||||
for ($i=0; $i<3; $i++) // 3 fields
|
||||
{
|
||||
|
|
|
@ -104,7 +104,7 @@ span.errors {
|
|||
<p>
|
||||
<strong>{'Complementary mail content'|@translate}</strong>
|
||||
<br>
|
||||
<textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea>
|
||||
<textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{if isset($MAIL_CONTENT)}{$MAIL_CONTENT}{/if}</textarea>
|
||||
</p>
|
||||
|
||||
{if isset($auth_key_duration)}
|
||||
|
|
|
@ -285,8 +285,8 @@ $template->set_filenames(array('comments'=>'comments.tpl', 'comment_list'=>'comm
|
|||
$template->assign(
|
||||
array(
|
||||
'F_ACTION'=>PHPWG_ROOT_PATH.'comments.php',
|
||||
'F_KEYWORD'=> htmlspecialchars(stripslashes(@$_GET['keyword'])),
|
||||
'F_AUTHOR'=> htmlspecialchars(stripslashes(@$_GET['author'])),
|
||||
'F_KEYWORD'=> isset($_GET['keyword']) ? htmlspecialchars(stripslashes($_GET['keyword'])) : "",
|
||||
'F_AUTHOR'=> isset($_GET['author']) ? htmlspecialchars(stripslashes($_GET['author'])) : "",
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -532,6 +532,7 @@ function set_status_header($code, $text='')
|
|||
*/
|
||||
function render_category_literal_description($desc)
|
||||
{
|
||||
!isset($desc) ? $desc = "" : false;
|
||||
return strip_tags($desc, '<span><p><a><br><b><i><small><big><strong><em>');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue