Commit f0e8c54a authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1772773: call render_items in the static way"

parents 1bf98911 00ed9a98
......@@ -51,7 +51,7 @@ class PluginBlocktypeGroupViews extends MaharaCoreBlocktype {
* @param array options
* @param array pagination
*/
public function render_items(&$items, $template, $options, $pagination) {
public static function render_items(&$items, $template, $options, $pagination) {
$smarty = smarty_core();
$smarty->assign('options', $options);
$smarty->assign('items', $items['data']);
......
......@@ -41,7 +41,7 @@ class PluginBlocktypeMyGroups extends MaharaCoreBlocktype {
* @param array options
* @param array pagination
*/
public function render_items(&$items, $template, $options, $pagination) {
public static function render_items(&$items, $template, $options, $pagination) {
$smarty = smarty_core();
$smarty->assign('options', $options);
$smarty->assign('items', $items['data']);
......
......@@ -41,7 +41,7 @@ class PluginBlocktypeMyviews extends MaharaCoreBlocktype {
* @param array options
* @param array pagination
*/
public function render_items(&$items, $template, $options, $pagination) {
public static function render_items(&$items, $template, $options, $pagination) {
$smarty = smarty_core();
$smarty->assign('options', $options);
$smarty->assign('items', $items['data']);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment