From 1274889931925389add1fd52d07d90eb03a70b62 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 17 Nov 2016 11:00:34 -0800 Subject: issue #588, change 'Bug Report' app to 'Report Bug' --- Zotlabs/Lib/System.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Lib/System.php') diff --git a/Zotlabs/Lib/System.php b/Zotlabs/Lib/System.php index 6ccfd664c..32aaa82a9 100644 --- a/Zotlabs/Lib/System.php +++ b/Zotlabs/Lib/System.php @@ -32,13 +32,13 @@ class System { static public function get_notify_icon() { if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['email_notify_icon_url']) return \App::$config['system']['email_notify_icon_url']; - return z_root() . '/images/hz-white-32.png'; + return z_root() . DEFAULT_NOTIFY_ICON; } static public function get_site_icon() { if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['site_icon_url']) return \App::$config['system']['site_icon_url']; - return z_root() . '/images/hz-32.png'; + return z_root() . DEFAULT_PLATFORM_ICON ; } -- cgit v1.2.3 From abb3341030b15bf123e998ccea667695c7d785e8 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sat, 19 Nov 2016 13:01:50 -0800 Subject: redmatrix is no longer considered a supported platform and will not be listed in pubsites as of 2.x --- Zotlabs/Lib/System.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib/System.php') diff --git a/Zotlabs/Lib/System.php b/Zotlabs/Lib/System.php index 32aaa82a9..26768af26 100644 --- a/Zotlabs/Lib/System.php +++ b/Zotlabs/Lib/System.php @@ -54,5 +54,11 @@ class System { return '0.0.0'; } - + static public function compatible_project($p) { + foreach(['hubzilla','zap'] as $t) { + if(stristr($p,$t)) + return true; + } + return false; + } } -- cgit v1.2.3 From d757dd4e1750908a9964189c4310c4037c3c3fc4 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 29 Nov 2016 15:47:38 -0800 Subject: provide a fresh new look and cleaner layout and more relevant information to siteinfo --- Zotlabs/Lib/System.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Zotlabs/Lib/System.php') diff --git a/Zotlabs/Lib/System.php b/Zotlabs/Lib/System.php index 26768af26..f05cdcf0e 100644 --- a/Zotlabs/Lib/System.php +++ b/Zotlabs/Lib/System.php @@ -42,6 +42,20 @@ class System { } + static public function get_project_link() { + if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['project_link']) + return \App::$config['system']['project_link']; + return 'https://hubzilla.org'; + } + + static public function get_project_srclink() { + if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['project_srclink']) + return \App::$config['system']['project_srclink']; + return 'https://github.org/redmatrix/hubzilla'; + } + + + static public function get_server_role() { if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['server_role']) return \App::$config['system']['server_role']; -- cgit v1.2.3 From 0cf6c6c132dda695853ce52089f6745a9c4b29dc Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 29 Nov 2016 17:00:37 -0800 Subject: wrong link --- Zotlabs/Lib/System.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Lib/System.php') diff --git a/Zotlabs/Lib/System.php b/Zotlabs/Lib/System.php index f05cdcf0e..70443016f 100644 --- a/Zotlabs/Lib/System.php +++ b/Zotlabs/Lib/System.php @@ -51,7 +51,7 @@ class System { static public function get_project_srclink() { if(is_array(\App::$config) && is_array(\App::$config['system']) && \App::$config['system']['project_srclink']) return \App::$config['system']['project_srclink']; - return 'https://github.org/redmatrix/hubzilla'; + return 'https://github.com/redmatrix/hubzilla'; } -- cgit v1.2.3 From 47a356ff52900fd8cd8d4980b44c69c13b2e612f Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 1 Dec 2016 14:45:24 -0800 Subject: compatible_project: we are only concerned with the default realm --- Zotlabs/Lib/System.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Zotlabs/Lib/System.php') diff --git a/Zotlabs/Lib/System.php b/Zotlabs/Lib/System.php index 70443016f..306c90f4a 100644 --- a/Zotlabs/Lib/System.php +++ b/Zotlabs/Lib/System.php @@ -69,6 +69,10 @@ class System { } static public function compatible_project($p) { + + if(get_directory_realm() != DIRECTORY_REALM) + return true; + foreach(['hubzilla','zap'] as $t) { if(stristr($p,$t)) return true; -- cgit v1.2.3