diff options
author | redmatrix <git@macgirvin.com> | 2016-02-18 15:24:58 -0800 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-02-18 15:24:58 -0800 |
commit | 342fda94e4162634eeb67c18c1d284e7d78f217f (patch) | |
tree | 8171ce097a62ddf6de743a4ec25b2dd9ae3ccc41 /include/network.php | |
parent | c107bcfbd972a900cfd81b217014f7d4915fd73d (diff) | |
download | volse-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/network.php')
-rw-r--r-- | include/network.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/network.php b/include/network.php index 7a9bca94a..aa6b54945 100644 --- a/include/network.php +++ b/include/network.php @@ -1620,7 +1620,7 @@ function format_and_send_email($sender,$xchan,$item) { $tpl = get_markup_template('email_notify_html.tpl'); $email_html_body = replace_macros($tpl,array( '$banner' => $banner, - '$notify_icon' => get_notify_icon(), + '$notify_icon' => Zotlabs\Project\System::get_notify_icon(), '$product' => $product, '$preamble' => '', '$sitename' => $sitename, @@ -1768,8 +1768,8 @@ function get_site_info() { $site_info = get_config('system','info'); $site_name = get_config('system','sitename'); if(! get_config('system','hidden_version_siteinfo')) { - $version = get_project_version(); - $tag = get_std_version(); + $version = Zotlabs\Project\System::get_project_version(); + $tag = Zotlabs\Project\System::get_std_version(); if(@is_dir('.git') && function_exists('shell_exec')) { $commit = trim( @shell_exec('git log -1 --format="%h"')); @@ -1805,7 +1805,7 @@ function get_site_info() { $data = Array( 'version' => $version, 'version_tag' => $tag, - 'server_role' => get_server_role(), + 'server_role' => Zotlabs\Project\System::get_server_role(), 'commit' => $commit, 'url' => z_root(), 'plugins' => $visible_plugins, @@ -1819,7 +1819,7 @@ function get_site_info() { 'locked_features' => $locked_features, 'admin' => $admin, 'site_name' => (($site_name) ? $site_name : ''), - 'platform' => get_platform_name(), + 'platform' => Zotlabs\Project\System::get_platform_name(), 'dbdriver' => $db->getdriver(), 'lastpoll' => get_config('system','lastpoll'), 'info' => (($site_info) ? $site_info : ''), |