fixes #416, returns available_sizes in pwg.session.getStatus

This commit is contained in:
plegall
2016-12-06 19:28:22 +01:00
parent 102e0f0608
commit 5c8528afec
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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())
{
+1 -1
View File
@@ -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.',