Set a default directory server from a hard-wired list if one was not previously chosen.

This commit is contained in:
friendica
2014-04-25 18:10:23 -07:00
parent d6620522c2
commit 3e8e67df2c
8 changed files with 39 additions and 45 deletions

View File

@@ -23,13 +23,7 @@ function dirprofile_init(&$a) {
}
if(! $url) {
$directory = find_upstream_directory($dirmode);
if($directory) {
$url = $directory['url'] . '/dirsearch';
}
else {
$url = DIRECTORY_FALLBACK_MASTER . '/dirsearch';
}
$url = $directory['url'] . '/dirsearch';
}
logger('mod_directory: URL = ' . $url, LOGGER_DEBUG);