1
1
Fork 0

Normalize App parameter declaration (mod folder, 2 out of 3)

This commit is contained in:
Hypolite Petovan 2017-01-09 23:14:25 +11:00
commit f92918f471
42 changed files with 133 additions and 133 deletions

View file

@ -1,6 +1,6 @@
<?php
function msearch_post(App &$a) {
function msearch_post(App $a) {
$perpage = (($_POST['n']) ? $_POST['n'] : 80);
$page = (($_POST['p']) ? intval($_POST['p'] - 1) : 0);
@ -28,8 +28,8 @@ function msearch_post(App &$a) {
if (dbm::is_result($r)) {
foreach($r as $rr)
$results[] = array(
'name' => $rr['name'],
'url' => App::get_baseurl() . '/profile/' . $rr['nickname'],
'name' => $rr['name'],
'url' => App::get_baseurl() . '/profile/' . $rr['nickname'],
'photo' => App::get_baseurl() . '/photo/avatar/' . $rr['uid'] . '.jpg',
'tags' => str_replace(array(',',' '),array(' ',' '),$rr['pub_keywords'])
);