diff options
author | friendica <info@friendica.com> | 2015-02-02 17:32:54 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-02 17:32:54 -0800 |
commit | fb6deb113b718e18bf1e5031ec868b53acf93c1e (patch) | |
tree | c14951765b5419a91b8f987f5c7e94a66819cf88 /boot.php | |
parent | 08689db4ffccc1a541f77cbf32ffbd11c1a4ac22 (diff) | |
download | volse-hubzilla-fb6deb113b718e18bf1e5031ec868b53acf93c1e.tar.gz volse-hubzilla-fb6deb113b718e18bf1e5031ec868b53acf93c1e.tar.bz2 volse-hubzilla-fb6deb113b718e18bf1e5031ec868b53acf93c1e.zip |
improved directory registration - honour standalones and do the right thing
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2200,6 +2200,13 @@ function get_directory_realm() { * @return string */ function get_directory_primary() { + + $dirmode = intval(get_config('system','directory_mode')); + + if($dirmode == DIRECTORY_MODE_STANDALONE || $dirmode == DIRECTORY_MODE_PRIMARY) { + return z_root(); + } + if($x = get_config('system', 'directory_primary')) return $x; |