Skip to content

Commit 60177a9

Browse files
committed
Adjust preview content in search page
1 parent f1db87a commit 60177a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Templates/Search/Search.phtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,14 @@ require('./Includes/header.inc.phtml'); ?>
8282
case $item instanceof \BNETDocs\Libraries\Packet\Packet:
8383
$url = $item->getURI();
8484
$title = $item->getLabel();
85-
$preview = $item->getFormat() ?: $item->getRemarks(true);
85+
$preview = $item->getRemarks(true) ?: $item->getFormat();
8686
$tags = $item->getTags();
8787
break;
8888

8989
case $item instanceof \BNETDocs\Libraries\Server\Server:
9090
$url = $item->getURI();
91-
$title = $item->getLabel() . ' (' . $item->getAddress() . ':' . $item->getPort() . ')';
91+
$title = $item->getLabel();
92+
$preview = $item->getAddress() . ':' . $item->getPort();
9293
$tags = $item->getTags();
9394
break;
9495

0 commit comments

Comments
 (0)