aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/System.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-03-02 09:50:11 +0000
committerMario <mario@mariovavti.com>2020-03-02 09:50:11 +0000
commitba566fd64bbb57fb52779a3f29f30e730cab7744 (patch)
tree85ff6e77a4a0bbbdde7638055270f5a3a2b33f55 /Zotlabs/Lib/System.php
parent19bb9e018152ce528846fb955b58d76f1bb6bdec (diff)
parent85c07d57fe0f468eb8cc84584f3636b590aa929f (diff)
downloadvolse-hubzilla-ba566fd64bbb57fb52779a3f29f30e730cab7744.tar.gz
volse-hubzilla-ba566fd64bbb57fb52779a3f29f30e730cab7744.tar.bz2
volse-hubzilla-ba566fd64bbb57fb52779a3f29f30e730cab7744.zip
Merge branch 'dev' into z6connect
Diffstat (limited to 'Zotlabs/Lib/System.php')
-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() {