Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
f0e8c54a
Commit
f0e8c54a
authored
May 24, 2018
by
Robert Lyon
Committed by
Gerrit Code Review
May 24, 2018
Browse files
Merge "Bug 1772773: call render_items in the static way"
parents
1bf98911
00ed9a98
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/groupviews/lib.php
View file @
f0e8c54a
...
@@ -51,7 +51,7 @@ class PluginBlocktypeGroupViews extends MaharaCoreBlocktype {
...
@@ -51,7 +51,7 @@ class PluginBlocktypeGroupViews extends MaharaCoreBlocktype {
* @param array options
* @param array options
* @param array pagination
* @param array pagination
*/
*/
public
function
render_items
(
&
$items
,
$template
,
$options
,
$pagination
)
{
public
static
function
render_items
(
&
$items
,
$template
,
$options
,
$pagination
)
{
$smarty
=
smarty_core
();
$smarty
=
smarty_core
();
$smarty
->
assign
(
'options'
,
$options
);
$smarty
->
assign
(
'options'
,
$options
);
$smarty
->
assign
(
'items'
,
$items
[
'data'
]);
$smarty
->
assign
(
'items'
,
$items
[
'data'
]);
...
...
htdocs/blocktype/mygroups/lib.php
View file @
f0e8c54a
...
@@ -41,7 +41,7 @@ class PluginBlocktypeMyGroups extends MaharaCoreBlocktype {
...
@@ -41,7 +41,7 @@ class PluginBlocktypeMyGroups extends MaharaCoreBlocktype {
* @param array options
* @param array options
* @param array pagination
* @param array pagination
*/
*/
public
function
render_items
(
&
$items
,
$template
,
$options
,
$pagination
)
{
public
static
function
render_items
(
&
$items
,
$template
,
$options
,
$pagination
)
{
$smarty
=
smarty_core
();
$smarty
=
smarty_core
();
$smarty
->
assign
(
'options'
,
$options
);
$smarty
->
assign
(
'options'
,
$options
);
$smarty
->
assign
(
'items'
,
$items
[
'data'
]);
$smarty
->
assign
(
'items'
,
$items
[
'data'
]);
...
...
htdocs/blocktype/myviews/lib.php
View file @
f0e8c54a
...
@@ -41,7 +41,7 @@ class PluginBlocktypeMyviews extends MaharaCoreBlocktype {
...
@@ -41,7 +41,7 @@ class PluginBlocktypeMyviews extends MaharaCoreBlocktype {
* @param array options
* @param array options
* @param array pagination
* @param array pagination
*/
*/
public
function
render_items
(
&
$items
,
$template
,
$options
,
$pagination
)
{
public
static
function
render_items
(
&
$items
,
$template
,
$options
,
$pagination
)
{
$smarty
=
smarty_core
();
$smarty
=
smarty_core
();
$smarty
->
assign
(
'options'
,
$options
);
$smarty
->
assign
(
'options'
,
$options
);
$smarty
->
assign
(
'items'
,
$items
[
'data'
]);
$smarty
->
assign
(
'items'
,
$items
[
'data'
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment