mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 17:53:08 +02:00
details about the new input parameter position for pwg.categories.add
This commit is contained in:
@@ -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"];
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user