diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-02-13 22:26:17 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-02-13 22:26:17 +0000 |
commit | 9f05167bac7d20fb39e5c86e88045b7049f8f8fd (patch) | |
tree | 716084336f3742fd9364c21aba276bea6ed98494 /include/ws_functions/pwg.php | |
parent | 761736fc6adda709c8d0523a3f255db587d1d525 (diff) |
web service always return pwg version (allow in the future mobile apps to maintain compatibility)
git-svn-id: http://piwigo.org/svn/trunk@27371 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/ws_functions/pwg.php')
-rw-r--r-- | include/ws_functions/pwg.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/include/ws_functions/pwg.php b/include/ws_functions/pwg.php index 5f3772aff..d94d7a1a8 100644 --- a/include/ws_functions/pwg.php +++ b/include/ws_functions/pwg.php @@ -139,16 +139,7 @@ SELECT id, path, representative_ext, width, height, rotation */ function ws_getVersion($params, &$service) { - global $conf; - - if ($conf['show_version'] or is_admin()) - { - return PHPWG_VERSION; - } - else - { - return new PwgError(403, 'Forbidden'); - } + return PHPWG_VERSION; } /** @@ -335,7 +326,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; return $res; } |