improved directory registration - honour standalones and do the right thing

This commit is contained in:
friendica
2015-02-02 17:32:54 -08:00
parent 08689db4ff
commit fb6deb113b
2 changed files with 15 additions and 3 deletions

View File

@@ -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;