From 2e2254371a0d6bdc2bb6e13b699e6353e42b1c2f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 30 Dec 2016 02:45:16 -0800 Subject: move api version call back to core --- include/api_zot.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include/api_zot.php') diff --git a/include/api_zot.php b/include/api_zot.php index 82de85454..0881211d0 100644 --- a/include/api_zot.php +++ b/include/api_zot.php @@ -1,6 +1,8 @@ ' . "\r\n" . '' . Zotlabs\Lib\System::get_project_version() . '' . "\r\n"; + killme(); + } + elseif($type === 'json') { + header('Content-type: application/json'); + echo '"' . Zotlabs\Lib\System::get_project_version() . '"'; + killme(); + } + } + + + /* * Red basic channel export */ -- cgit v1.2.3