aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2020-01-30 15:58:36 -0800
committerzotlabs <mike@macgirvin.com>2020-01-30 15:58:36 -0800
commitb8d7647c48f9683909476d14c6f94195980b15a2 (patch)
treebed30f592e179da1a842114370bdd402cafb2495 /Zotlabs/Lib
parent989443a5698adf5e7a93f874048699526aa103a7 (diff)
parentc50a311ff32d7361d0809d87b03be1b4ec25b783 (diff)
downloadvolse-hubzilla-b8d7647c48f9683909476d14c6f94195980b15a2.tar.gz
volse-hubzilla-b8d7647c48f9683909476d14c6f94195980b15a2.tar.bz2
volse-hubzilla-b8d7647c48f9683909476d14c6f94195980b15a2.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/System.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/Zotlabs/Lib/System.php b/Zotlabs/Lib/System.php
index 7bf1343bb..3cc46fbda 100644
--- a/Zotlabs/Lib/System.php
+++ b/Zotlabs/Lib/System.php
@@ -5,9 +5,14 @@ namespace Zotlabs\Lib;
class System {
static public function get_platform_name() {
- if(is_array(\App::$config) && is_array(\App::$config['system']) && array_key_exists('platform_name',\App::$config['system']))
- return \App::$config['system']['platform_name'];
- return PLATFORM_NAME;
+ static $platform_name = '';
+ if(empty($platform_name)) {
+ if(is_array(\App::$config) && is_array(\App::$config['system']) && array_key_exists('platform_name',\App::$config['system']))
+ $platform_name = \App::$config['system']['platform_name'];
+ else
+ $platform_name = PLATFORM_NAME;
+ }
+ return $platform_name;
}
static public function get_site_name() {