From fb6deb113b718e18bf1e5031ec868b53acf93c1e Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 2 Feb 2015 17:32:54 -0800 Subject: improved directory registration - honour standalones and do the right thing --- boot.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 2f8d1c08f..74e77caa1 100755 --- a/boot.php +++ b/boot.php @@ -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; -- cgit v1.2.3