details about the new input parameter position for pwg.categories.add

This commit is contained in:
plegall
2022-08-18 11:34:37 +02:00
parent c4208c2258
commit 352e256d41
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -576,7 +576,7 @@ function ws_categories_add($params, &$service)
global $conf;
if ($params["position"] != "")
if (!empty($params['position']) and in_array($params['position'], array('first','last')))
{
//TODO make persistent with user prefs
$conf['newcat_default_position'] = $params["position"];
+1 -1
View File
@@ -611,7 +611,7 @@ function ws_addDefaultMethods( $arr )
'info'=>'public, private'),
'commentable' => array('default'=>true,
'type'=>WS_TYPE_BOOL),
'position' => array('default'=>null),
'position' => array('default'=>null, 'info'=>'first, last'),
),
'Adds an album.',
$ws_functions_root . 'pwg.categories.php',