Fixed a variable conflict in mod/xchan.php.

A variable $rr inside the foreachs was used twice.
Add translation to mod/xchan.php.
This commit is contained in:
Klaus Weidenbach
2014-11-14 00:45:25 +01:00
parent e4859d4bd7
commit e8b77fbdff
2 changed files with 10 additions and 11 deletions

View File

@@ -950,7 +950,7 @@ class App {
foreach($this->widgets as $w) {
if ($w['location'] == $location)
$ret[] = $w;
}
}
$arr = array('location' => $location, 'widgets' => $ret);
call_hooks('get_widgets', $arr);
return $arr['widgets'];