aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-18 15:24:58 -0800
committerredmatrix <git@macgirvin.com>2016-02-18 15:24:58 -0800
commit342fda94e4162634eeb67c18c1d284e7d78f217f (patch)
tree8171ce097a62ddf6de743a4ec25b2dd9ae3ccc41 /include/api.php
parentc107bcfbd972a900cfd81b217014f7d4915fd73d (diff)
downloadvolse-hubzilla-342fda94e4162634eeb67c18c1d284e7d78f217f.tar.gz
volse-hubzilla-342fda94e4162634eeb67c18c1d284e7d78f217f.tar.bz2
volse-hubzilla-342fda94e4162634eeb67c18c1d284e7d78f217f.zip
Provide Zotlabs\Project and System class for querying details about the project/version info. Move these out of /boot.php
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/api.php b/include/api.php
index ef41a4912..e78e6cc37 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' => get_platform_name(),
- 'RED_VERSION' => get_project_version(),
+ 'PLATFORM_NAME' => Zotlabs\Project\System::get_platform_name(),
+ 'RED_VERSION' => Zotlabs\Project\System::get_project_version(),
'ZOT_REVISION' => ZOT_REVISION,
- 'DB_UPDATE_VERSION' => get_update_version()
+ 'DB_UPDATE_VERSION' => Zotlabs\Project\System::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>' . get_project_version() . '</version>' . "\r\n";
+ echo '<?xml version="1.0" encoding="UTF-8"?>' . "\r\n" . '<version>' . Zotlabs\Project\System::get_project_version() . '</version>' . "\r\n";
killme();
}
elseif($type === 'json') {
header("Content-type: application/json");
- echo '"' . get_project_version() . '"';
+ echo '"' . Zotlabs\Project\System::get_project_version() . '"';
killme();
}
}