mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug 2852 fixed: ability to use HTML markup in album description for pwg.categories.add
git-svn-id: http://piwigo.org/svn/trunk@21070 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1253,7 +1253,7 @@ function create_virtual_category($category_name, $parent_id=null, $options=array
|
||||
// any description for this album?
|
||||
if (isset($options['comment']))
|
||||
{
|
||||
$insert['comment'] = strip_tags($options['comment']);
|
||||
$insert['comment'] = $conf['allow_html_descriptions'] ? $options['comment'] : strip_tags($options['comment']);
|
||||
}
|
||||
|
||||
if (!empty($parent_id) and is_numeric($parent_id))
|
||||
|
||||
@@ -240,6 +240,7 @@ if ($opt{action} eq 'pwg.categories.add') {
|
||||
method => 'pwg.categories.add',
|
||||
name => $opt{define}{name},
|
||||
parent => $opt{define}{parent},
|
||||
comment => $opt{define}{comment},
|
||||
};
|
||||
|
||||
my $response = $ua->post(
|
||||
|
||||
Reference in New Issue
Block a user