Commit bfbd1fc6 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove useless override_instance_title function from recentforumposts block

This has been ineffective since 2010-09-09, commit 40733e1b



Change-Id: I2ce9b3d35a7e5766d11caafd77664eb597140739
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 33fbdd53
...@@ -190,27 +190,6 @@ class PluginBlocktypeRecentForumPosts extends SystemBlocktype { ...@@ -190,27 +190,6 @@ class PluginBlocktypeRecentForumPosts extends SystemBlocktype {
return 'shallow'; return 'shallow';
} }
public static function override_instance_title(BlockInstance $instance) {
$groupid = $instance->get_view()->get('group');
if (!$groupid) {
$configdata = $instance->get('configdata');
if (isset($configdata['groupid'])) {
$groupid = intval($configdata['groupid']);
}
}
if (!empty($groupid)) {
return str_replace('<group>',
get_field('group', 'name', 'id', $groupid),
$instance->get('title')
);
}
else {
return $instance->get('title');
}
}
public static function feed_url(BlockInstance $instance) { public static function feed_url(BlockInstance $instance) {
if ($group = self::get_group($instance)) { if ($group = self::get_group($instance)) {
if ($group->public) { if ($group->public) {
......
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