Commit 00ed9a98 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1772773: call render_items in the static way

behatnotneeded

Change-Id: Idcd2689e6c196a6604e5f4706fb9019c4f0e3c88
parent c6f82f81
......@@ -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']);
......
Markdown is supported
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