Commit 17cd1ac0 authored by Penny Leach's avatar Penny Leach Committed by Penny Leach
Browse files

renaming stupid function name

parent acb61dbc
......@@ -51,7 +51,7 @@ class PluginBlocktypeWall extends SystemBlocktype {
public static function render_instance(BlockInstance $instance, $editing=false) {
$smarty = smarty_core();
$smarty->assign('instanceid', $instance->get('id'));
if ($posts = self::wallpost_fetch_posts($instance)) {
if ($posts = self::fetch_posts($instance)) {
$smarty->assign('wallposts', $posts);
}
else {
......@@ -129,7 +129,7 @@ class PluginBlocktypeWall extends SystemBlocktype {
redirect('/user/view.php');
}
public static function wallpost_fetch_posts(BlockInstance $instance ) {
public static function fetch_posts(BlockInstance $instance ) {
global $USER;
$owner = $instance->get_view()->get('owner');
$userid = (!empty($USER) ? $USER->get('id') : 0);
......
......@@ -41,7 +41,7 @@ $owner->displayname = display_name($owner);
$smarty = smarty();
$smarty->assign('owner', $owner);
$smarty->assign('wholewall', true);
if ($posts = PluginBlocktypeWall::wallpost_fetch_posts($block)) {
if ($posts = PluginBlocktypeWall::fetch_posts($block)) {
$smarty->assign('wallposts', $posts);
}
else {
......
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