aboutsummaryrefslogtreecommitdiff
path: root/views/default/river/item.php
blob: 75767e08dc0d988bd49b0a1a0a57b4d7eedb4f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
 * Primary river item view
 *
 * Calls the individual view saved for that river item. Most of these
 * individual river views then use the views in river/elements.
 *
 * @uses $vars['item'] ElggRiverItem
 */

// @todo remove this in Elgg 1.9
global $_elgg_special_river_catch;
if (!isset($_elgg_special_river_catch)) {
	$_elgg_special_river_catch = false;
}
if ($_elgg_special_river_catch) {
	// we changed the views a little in 1.8.1 so this catches the plugins that
	// were updated in 1.8.0 and redirects to the layout view
	echo elgg_view('river/elements/layout', $vars);
	return true;
}
$_elgg_special_river_catch = true;


$item = $vars['item'];

echo elgg_view($item->getView(), $vars);


$_elgg_special_river_catch = false;