must use named vars in plugin args

This commit is contained in:
friendica 2011-12-15 01:09:38 -08:00
parent cb2e68c88e
commit 6d7781434b

View file

@ -3,7 +3,8 @@
if(! function_exists('home_init')) { if(! function_exists('home_init')) {
function home_init(&$a) { function home_init(&$a) {
call_hooks('home_init',array()); $ret = array();
call_hooks('home_init',$ret);
if(local_user() && ($a->user['nickname'])) if(local_user() && ($a->user['nickname']))
goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] ); goaway( $a->get_baseurl() . "/profile/" . $a->user['nickname'] );