From 5c8528afecc46becc89ee5540c376de0860d6abd Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 6 Dec 2016 19:28:22 +0100 Subject: [PATCH] fixes #416, returns available_sizes in pwg.session.getStatus --- include/ws_functions/pwg.php | 1 + ws.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ws_functions/pwg.php b/include/ws_functions/pwg.php index bd9df7245..6edb841d6 100644 --- a/include/ws_functions/pwg.php +++ b/include/ws_functions/pwg.php @@ -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()) { diff --git a/ws.php b/ws.php index 6a2bd211d..1aff64897 100644 --- a/ws.php +++ b/ws.php @@ -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.',