Provide Zotlabs\Project and System class for querying details about the project/version info. Move these out of /boot.php

This commit is contained in:
redmatrix
2016-02-18 15:24:58 -08:00
parent c107bcfbd9
commit 342fda94e4
16 changed files with 87 additions and 77 deletions

View File

@@ -3835,7 +3835,7 @@ function zotinfo($arr) {
$ret['site']['channels'] = channel_total();
$ret['site']['version'] = get_platform_name() . ' ' . RED_VERSION . '[' . DB_UPDATE_VERSION . ']';
$ret['site']['version'] = Zotlabs\Project\System::get_platform_name() . ' ' . RED_VERSION . '[' . DB_UPDATE_VERSION . ']';
$ret['site']['admin'] = get_config('system','admin_email');
@@ -3855,7 +3855,7 @@ function zotinfo($arr) {
$ret['site']['sellpage'] = get_config('system','sellpage');
$ret['site']['location'] = get_config('system','site_location');
$ret['site']['realm'] = get_directory_realm();
$ret['site']['project'] = get_platform_name();
$ret['site']['project'] = Zotlabs\Project\System::get_platform_name();
}