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
This commit is contained in:
rvelices
2014-02-13 22:26:17 +00:00
parent 761736fc6a
commit 9f05167bac
+2 -11
View File
@@ -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;
}