aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/ws_core.inc.php3
-rw-r--r--include/ws_functions.inc.php2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php
index d7525dcce..f63289611 100644
--- a/include/ws_core.inc.php
+++ b/include/ws_core.inc.php
@@ -371,6 +371,7 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
@header('Content-Type: '.$contentType.'; charset='.get_pwg_charset());
print_r($encodedResponse);
+ trigger_action('sendResponse', $encodedResponse );
}
/**
@@ -576,4 +577,4 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF
return $res;
}
}
-?>
+?> \ No newline at end of file
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');