mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
There is now only one central parameter for the global directory.
This commit is contained in:
parent
6b744aa71c
commit
5ac38b7f99
19 changed files with 92 additions and 99 deletions
|
@ -100,7 +100,7 @@ function dirfind_content(&$a, $prefix = "") {
|
|||
|
||||
$p = (($a->pager['page'] != 1) ? '&p=' . $a->pager['page'] : '');
|
||||
|
||||
if(strlen(get_config('system','directory_submit_url')))
|
||||
if(strlen(get_config('system','directory')))
|
||||
$x = fetch_url(get_server().'/lsearch?f=' . $p . '&search=' . urlencode($search));
|
||||
|
||||
$j = json_decode($x);
|
||||
|
@ -125,6 +125,8 @@ function dirfind_content(&$a, $prefix = "") {
|
|||
$conntxt = t('Connect');
|
||||
}
|
||||
|
||||
$jj->photo = str_replace("http:///photo/", get_server()."/photo/", $jj->photo);
|
||||
|
||||
$o .= replace_macros($tpl,array(
|
||||
'$url' => zrl($jj->url),
|
||||
'$name' => $jj->name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue