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
17cd1ac0
Commit
17cd1ac0
authored
Mar 25, 2008
by
Penny Leach
Committed by
Penny Leach
Sep 15, 2008
Browse files
renaming stupid function name
parent
acb61dbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/wall/lib.php
View file @
17cd1ac0
...
@@ -51,7 +51,7 @@ class PluginBlocktypeWall extends SystemBlocktype {
...
@@ -51,7 +51,7 @@ class PluginBlocktypeWall extends SystemBlocktype {
public
static
function
render_instance
(
BlockInstance
$instance
,
$editing
=
false
)
{
public
static
function
render_instance
(
BlockInstance
$instance
,
$editing
=
false
)
{
$smarty
=
smarty_core
();
$smarty
=
smarty_core
();
$smarty
->
assign
(
'instanceid'
,
$instance
->
get
(
'id'
));
$smarty
->
assign
(
'instanceid'
,
$instance
->
get
(
'id'
));
if
(
$posts
=
self
::
wallpost_
fetch_posts
(
$instance
))
{
if
(
$posts
=
self
::
fetch_posts
(
$instance
))
{
$smarty
->
assign
(
'wallposts'
,
$posts
);
$smarty
->
assign
(
'wallposts'
,
$posts
);
}
}
else
{
else
{
...
@@ -129,7 +129,7 @@ class PluginBlocktypeWall extends SystemBlocktype {
...
@@ -129,7 +129,7 @@ class PluginBlocktypeWall extends SystemBlocktype {
redirect
(
'/user/view.php'
);
redirect
(
'/user/view.php'
);
}
}
public
static
function
wallpost_
fetch_posts
(
BlockInstance
$instance
)
{
public
static
function
fetch_posts
(
BlockInstance
$instance
)
{
global
$USER
;
global
$USER
;
$owner
=
$instance
->
get_view
()
->
get
(
'owner'
);
$owner
=
$instance
->
get_view
()
->
get
(
'owner'
);
$userid
=
(
!
empty
(
$USER
)
?
$USER
->
get
(
'id'
)
:
0
);
$userid
=
(
!
empty
(
$USER
)
?
$USER
->
get
(
'id'
)
:
0
);
...
...
htdocs/blocktype/wall/wall.php
View file @
17cd1ac0
...
@@ -41,7 +41,7 @@ $owner->displayname = display_name($owner);
...
@@ -41,7 +41,7 @@ $owner->displayname = display_name($owner);
$smarty
=
smarty
();
$smarty
=
smarty
();
$smarty
->
assign
(
'owner'
,
$owner
);
$smarty
->
assign
(
'owner'
,
$owner
);
$smarty
->
assign
(
'wholewall'
,
true
);
$smarty
->
assign
(
'wholewall'
,
true
);
if
(
$posts
=
PluginBlocktypeWall
::
wallpost_
fetch_posts
(
$block
))
{
if
(
$posts
=
PluginBlocktypeWall
::
fetch_posts
(
$block
))
{
$smarty
->
assign
(
'wallposts'
,
$posts
);
$smarty
->
assign
(
'wallposts'
,
$posts
);
}
}
else
{
else
{
...
...
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