Skip to content

Commit 6c016a4

Browse files
committed
Fixed layout rendering if 3PD's have extended JLayoutBase
1 parent e4f65b6 commit 6c016a4

File tree

2 files changed

+636
-27
lines changed

2 files changed

+636
-27
lines changed

mod_shoutbox/helper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,11 +1135,12 @@ public function renderPost($shout, $layout = 'message')
11351135
'module' => 'mod_shoutbox',
11361136
'client' => 0
11371137
);
1138+
11381139
$registry = new JRegistry($options);
11391140
$layout = new JJShoutboxLayoutFile($layout, null, $registry);
1140-
$output = $layout->render($data);
1141+
$layout->addIncludePaths(JPATH_SITE . '/modules/mod_shoutbox/layouts');
11411142

1142-
return $output;
1143+
return $layout->render($data);
11431144
}
11441145

11451146
/**

0 commit comments

Comments
 (0)