Make the hardcoded path to dir.friendica.com configurable

This commit is contained in:
Michael Vogel 2015-08-23 11:05:10 +02:00
commit 123ad84689
7 changed files with 17 additions and 8 deletions

View file

@ -26,14 +26,14 @@ function match_content(&$a) {
$params = array();
$tags = trim($r[0]['pub_keywords'] . ' ' . $r[0]['prv_keywords']);
if($tags) {
$params['s'] = $tags;
if($a->pager['page'] != 1)
$params['p'] = $a->pager['page'];
if(strlen(get_config('system','directory_submit_url')))
$x = post_url('http://dir.friendica.com/msearch', $params);
$x = post_url(get_server().'/msearch', $params);
else
$x = post_url($a->get_baseurl() . '/msearch', $params);