Move redundant System::baseUrl() to DI::baseUrl() calls
This commit is contained in:
parent
f2da1c5ab9
commit
3f34229752
81 changed files with 418 additions and 465 deletions
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
|
||||
function msearch_post(App $a)
|
||||
{
|
||||
|
@ -54,8 +54,8 @@ function msearch_post(App $a)
|
|||
while($search_result = DBA::fetch($search_stmt)) {
|
||||
$results[] = [
|
||||
'name' => $search_result['name'],
|
||||
'url' => System::baseUrl() . '/profile/' . $search_result['nickname'],
|
||||
'photo' => System::baseUrl() . '/photo/avatar/' . $search_result['uid'] . '.jpg',
|
||||
'url' => DI::baseUrl() . '/profile/' . $search_result['nickname'],
|
||||
'photo' => DI::baseUrl() . '/photo/avatar/' . $search_result['uid'] . '.jpg',
|
||||
'tags' => str_replace([',', ' '], [' ', ' '], $search_result['pub_keywords'])
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue