diff options
author | cash <cash.costello@gmail.com> | 2011-06-29 21:13:07 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-06-29 21:13:07 -0400 |
commit | 6763adb960f376eba6ac5c299763c1965305d2f9 (patch) | |
tree | c16a9546dcf5f90b3b8d0a01af7684e985595bf6 | |
parent | 8526e7d2d081dc516710864c79561abf974d8feb (diff) | |
download | elgg-6763adb960f376eba6ac5c299763c1965305d2f9.tar.gz elgg-6763adb960f376eba6ac5c299763c1965305d2f9.tar.bz2 |
made group widget columns backward compatible so that content at least does not disappear
-rw-r--r-- | mod/groups/views/default/groups/profile/widgets.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/groups/views/default/groups/profile/widgets.php b/mod/groups/views/default/groups/profile/widgets.php index 75c04c810..caf019a3a 100644 --- a/mod/groups/views/default/groups/profile/widgets.php +++ b/mod/groups/views/default/groups/profile/widgets.php @@ -9,7 +9,16 @@ echo '<div id="groups-tools" class="elgg-gallery elgg-gallery-fluid mtl clearfix">'; // enable tools to extend this area -echo elgg_view("groups/tool_latest", array('entity' => $vars['entity'])); +echo elgg_view("groups/tool_latest", $vars); + +// backward compatibility +$right = elgg_view('groups/right_column', $vars); +$left = elgg_view('groups/left_column', $vars); +if ($right || $left) { + elgg_deprecated_notice('The views groups/right_column and groups/left_column have been replaced by groups/tool_latest', 1.8); + echo $left; + echo $right; +} echo "</div>"; |