]> git.mxchange.org Git - friendica.git/blobdiff - mod/dirfind.php
tinymce: add filebrowser for photos and attached files
[friendica.git] / mod / dirfind.php
index 801018276644f98adda868676f45fdfdac0e7228..34c54dd9185877b23fbf5a00b55cc7860c22bc84 100644 (file)
@@ -27,7 +27,7 @@ function dirfind_content(&$a) {
                $p = (($a->pager['page'] != 1) ? '&p=' . $a->pager['page'] : '');
                        
                if(strlen(get_config('system','directory_submit_url')))
-                       $x = fetch_url('http://dir.friendika.com/lsearch?f=' . $p .  '&search=' . urlencode($search));
+                       $x = fetch_url('http://dir.friendica.com/lsearch?f=' . $p .  '&search=' . urlencode($search));
 
 //TODO fallback local search if global dir not available.
 //             else
@@ -46,7 +46,7 @@ function dirfind_content(&$a) {
                        foreach($j->results as $jj) {
                                
                                $o .= replace_macros($tpl,array(
-                                       '$url' => $jj->url,
+                                       '$url' => zrl($jj->url),
                                        '$name' => $jj->name,
                                        '$photo' => $jj->photo,
                                        '$tags' => $jj->tags