aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions.inc.php
diff options
context:
space:
mode:
authorcljosse <cljosse@piwigo.org>2011-03-17 14:40:26 +0000
committercljosse <cljosse@piwigo.org>2011-03-17 14:40:26 +0000
commit6cfd6e78fc03bca0a9f41d53087ba7b78349138b (patch)
tree3fa5fe836ca3d6d413b16916b06b7b0295263373 /include/ws_functions.inc.php
parent727e13aab57c5922bf62d92a455542004e51a8cc (diff)
ws_getVersion -> add test for admin , sendResponse -> add a trigger for debug ws
git-svn-id: http://piwigo.org/svn/trunk@9742 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/ws_functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index fa1be9e1d..849ff949e 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -175,7 +175,7 @@ function ws_std_get_image_xml_attributes()
function ws_getVersion($params, &$service)
{
global $conf;
- if ($conf['show_version'])
+ if ($conf['show_version'] or is_admin() )
return PHPWG_VERSION;
else
return new PwgError(403, 'Forbidden');