diff options
author | redmatrix <git@macgirvin.com> | 2016-01-17 16:29:32 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-01-17 16:29:32 -0800 |
commit | 10ed334e8c81d1db4a506716b78ece13dc69266c (patch) | |
tree | 79a610615bbd6aacff90ff800cad0e08649c8407 /include/api.php | |
parent | 9b3b2efe9aa374565c0c67bbc67c36f9c99d3add (diff) | |
download | volse-hubzilla-10ed334e8c81d1db4a506716b78ece13dc69266c.tar.gz volse-hubzilla-10ed334e8c81d1db4a506716b78ece13dc69266c.tar.bz2 volse-hubzilla-10ed334e8c81d1db4a506716b78ece13dc69266c.zip |
various issues from the forums
Diffstat (limited to 'include/api.php')
-rw-r--r-- | include/api.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/api.php b/include/api.php index 5053977c5..ef41a4912 100644 --- a/include/api.php +++ b/include/api.php @@ -2106,10 +2106,10 @@ require_once('include/api_auth.php'); 'private' => $private, 'textlimit' => $textlimit, 'sslserver' => $sslserver, 'ssl' => $ssl, 'shorturllength' => '30', 'hubzilla' => array( - 'PLATFORM_NAME' => PLATFORM_NAME, - 'RED_VERSION' => RED_VERSION, + 'PLATFORM_NAME' => get_platform_name(), + 'RED_VERSION' => get_project_version(), 'ZOT_REVISION' => ZOT_REVISION, - 'DB_UPDATE_VERSION' => DB_UPDATE_VERSION + 'DB_UPDATE_VERSION' => get_update_version() ) )); @@ -2142,12 +2142,12 @@ require_once('include/api_auth.php'); if($type === 'xml') { header("Content-type: application/xml"); - echo '<?xml version="1.0" encoding="UTF-8"?>' . "\r\n" . '<version>' . RED_VERSION . '</version>' . "\r\n"; + echo '<?xml version="1.0" encoding="UTF-8"?>' . "\r\n" . '<version>' . get_project_version() . '</version>' . "\r\n"; killme(); } elseif($type === 'json') { header("Content-type: application/json"); - echo '"' . RED_VERSION . '"'; + echo '"' . get_project_version() . '"'; killme(); } } |