mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +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"];
|
||||
|
||||
Reference in New Issue
Block a user