Make the hardcoded path to dir.friendica.com configurable

This commit is contained in:
Michael Vogel
2015-08-23 11:05:10 +02:00
parent 470920dbed
commit 123ad84689
7 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ function discover_directory($search) {
}
}
$x = fetch_url("http://dir.friendica.com/lsearch?p=1&n=500&search=".urlencode($search));
$x = fetch_url(get_server()."/lsearch?p=1&n=500&search=".urlencode($search));
$j = json_decode($x);
if(count($j->results))