Skip to content

Commit f4fb66b

Browse files
authored
Merge pull request #277 from JoomJunk/development
quickly apply for other functions
2 parents 8a7d106 + e42dde4 commit f4fb66b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

mod_shoutbox/helper.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,11 +1168,12 @@ public function renderImageModal($modal, $image, $layout = 'image')
11681168
'module' => 'mod_shoutbox',
11691169
'client' => 0
11701170
);
1171+
11711172
$registry = new JRegistry($options);
11721173
$layout = new JJShoutboxLayoutFile($layout, null, $registry);
1173-
$output = $layout->render($data);
1174+
$layout->addIncludePaths(JPATH_SITE . '/modules/mod_shoutbox/layouts');
11741175

1175-
return $output;
1176+
return $layout->render($data);
11761177
}
11771178

11781179
/**
@@ -1202,9 +1203,9 @@ public function renderHistoryModal($shouts, $modal, $title, $layout = 'history')
12021203

12031204
$registry = new JRegistry($options);
12041205
$layout = new JJShoutboxLayoutFile($layout, null, $registry);
1205-
$output = $layout->render($data);
1206+
$layout->addIncludePaths(JPATH_SITE . '/modules/mod_shoutbox/layouts');
12061207

1207-
return $output;
1208+
return $layout->render($data);
12081209
}
12091210

12101211
/**

0 commit comments

Comments
 (0)