Don't show the alternate url syntax in searches

This commit is contained in:
Michael Vogel 2015-08-25 05:31:21 +02:00
commit 5c084b754a
2 changed files with 7 additions and 4 deletions

View file

@ -1,9 +1,9 @@
<?php
require_once('include/contact_widgets.php');
require_once('include/socgraph.php');
function dirfind_init(&$a) {
require_once('include/contact_widgets.php');
if(! x($a->page,'aside'))
$a->page['aside'] = '';
@ -76,6 +76,9 @@ function dirfind_content(&$a, $prefix = "") {
$j->items_page = $perpage;
$j->page = $a->pager['page'];
foreach ($results AS $result) {
if (poco_alternate_ostatus_url($result["url"]))
continue;
if ($result["name"] == "") {
$urlparts = parse_url($result["url"]);
$result["name"] = end(explode("/", $urlparts["path"]));