mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
fixes #2046 avoid strip_tags if pwg_token is provided
* pwg.categories.setInfo * pwg.categories.add * pwg.images.setInfo
This commit is contained in:
@@ -627,8 +627,9 @@ function ws_addDefaultMethods( $arr )
|
||||
'commentable' => array('default'=>true,
|
||||
'type'=>WS_TYPE_BOOL),
|
||||
'position' => array('default'=>null, 'info'=>'first, last'),
|
||||
'pwg_token' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
),
|
||||
'Adds an album.',
|
||||
'Adds an album.<br><br><b>pwg_token</b> required if you want to use HTML in name/comment.',
|
||||
$ws_functions_root . 'pwg.categories.php',
|
||||
array('admin_only'=>true)
|
||||
);
|
||||
@@ -848,11 +849,13 @@ function ws_addDefaultMethods( $arr )
|
||||
'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE),
|
||||
'single_value_mode' => array('default'=>'fill_if_empty'),
|
||||
'multiple_value_mode' => array('default'=>'append'),
|
||||
'pwg_token' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
),
|
||||
'Changes properties of an image.
|
||||
<br><b>single_value_mode</b> can be "fill_if_empty" (only use the input value if the corresponding values is currently empty) or "replace"
|
||||
(overwrite any existing value) and applies to single values properties like name/author/date_creation/comment.
|
||||
<br><b>multiple_value_mode</b> can be "append" (no change on existing values, add the new values) or "replace" and applies to multiple values properties like tag_ids/categories.',
|
||||
<br><b>multiple_value_mode</b> can be "append" (no change on existing values, add the new values) or "replace" and applies to multiple values properties like tag_ids/categories.
|
||||
<br><b>pwg_token</b> required if you want to use HTML in name/comment/author.',
|
||||
$ws_functions_root . 'pwg.images.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
@@ -877,8 +880,9 @@ function ws_addDefaultMethods( $arr )
|
||||
'apply_commentable_to_subalbums' => array('default'=>null,
|
||||
'flags'=>WS_PARAM_OPTIONAL,
|
||||
'info'=>'If true, set commentable to all sub album'),
|
||||
'pwg_token' => array('flags'=>WS_PARAM_OPTIONAL),
|
||||
),
|
||||
'Changes properties of an album.',
|
||||
'Changes properties of an album.<br><br><b>pwg_token</b> required if you want to use HTML in name/comment.',
|
||||
$ws_functions_root . 'pwg.categories.php',
|
||||
array('admin_only'=>true, 'post_only'=>true)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user