mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #416, returns available_sizes in pwg.session.getStatus
This commit is contained in:
@@ -327,6 +327,7 @@ function ws_session_getStatus($params, &$service)
|
||||
list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
|
||||
$res['current_datetime'] = $dbnow;
|
||||
$res['version'] = PHPWG_VERSION;
|
||||
$res['available_sizes'] = implode(',', array_keys(ImageStdParams::get_defined_type_map()));
|
||||
|
||||
if (is_admin())
|
||||
{
|
||||
|
||||
@@ -195,7 +195,7 @@ function ws_addDefaultMethods( $arr )
|
||||
'type'=>WS_TYPE_BOOL),
|
||||
'thumbnail_size' => array(
|
||||
'default' => IMG_THUMB,
|
||||
'info' => 'square, thumb, 2small, xsmall, small, medium, large, xlarge, xxlarge'
|
||||
'info' => implode(',', array_keys(ImageStdParams::get_defined_type_map()))
|
||||
),
|
||||
),
|
||||
'Returns a list of categories.',
|
||||
|
||||
Reference in New Issue
Block a user