aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dirprofile.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-25 18:10:23 -0700
committerfriendica <info@friendica.com>2014-04-25 18:10:23 -0700
commit3e8e67df2c838ee5fe0129bd77a0c987b151a8f3 (patch)
tree711b02a71b00b79210ce633179c0cc5e8398259d /mod/dirprofile.php
parentd6620522c274d67f12adebefea0d2ea50d08bf34 (diff)
downloadvolse-hubzilla-3e8e67df2c838ee5fe0129bd77a0c987b151a8f3.tar.gz
volse-hubzilla-3e8e67df2c838ee5fe0129bd77a0c987b151a8f3.tar.bz2
volse-hubzilla-3e8e67df2c838ee5fe0129bd77a0c987b151a8f3.zip
Set a default directory server from a hard-wired list if one was not previously chosen.
Diffstat (limited to 'mod/dirprofile.php')
-rw-r--r--mod/dirprofile.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/mod/dirprofile.php b/mod/dirprofile.php
index d88144f52..e9b12ada7 100644
--- a/mod/dirprofile.php
+++ b/mod/dirprofile.php
@@ -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);