aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions
diff options
context:
space:
mode:
Diffstat (limited to 'include/ws_functions')
-rw-r--r--include/ws_functions/pwg.php13
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;
}