dir/mod/home.php
Hypolite Petovan 687eef90f7 Fix upcoming killme() in index.php change
- Add killme() in controllers instead of relying on index.php
- Fix formatting
2017-08-01 21:33:50 -04:00

19 lines
468 B
PHP

<?php
use Friendica\Directory\Rendering\View;
use Friendica\Directory\Helper\Profile as ProfileHelper;
if(! function_exists('home_content')) {
function home_content(&$a) {
$profiles = q("SELECT * FROM profile WHERE comm=1 AND LENGTH(pdesc)>0 ORDER BY RAND() LIMIT 3");
$view = new View('homepage', 'minimal');
$view->addHelper('photoUrl', ProfileHelper::get('photoUrl'));
$view->output(array(
'profiles' => $profiles
));
killme();
}}