aboutsummaryrefslogtreecommitdiff
path: root/mod/blog/views
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-13 12:43:05 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-13 12:43:05 +0000
commit281a9097a225707b793a7f2dee88bedc3911dbe6 (patch)
tree39a8f6e023b2d48496b44cb478f2b3416ebf0d8a /mod/blog/views
parent5af791d152567f07b68c2006cfc74c71fc4d3058 (diff)
downloadelgg-281a9097a225707b793a7f2dee88bedc3911dbe6.tar.gz
elgg-281a9097a225707b793a7f2dee88bedc3911dbe6.tar.bz2
Refs #2226 need a catch in river views until riverdashboard plugin is updated
git-svn-id: http://code.elgg.org/elgg/trunk@7612 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views')
-rw-r--r--mod/blog/views/default/river/object/blog/create.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/blog/views/default/river/object/blog/create.php b/mod/blog/views/default/river/object/blog/create.php
index 38ee177ed..026145612 100644
--- a/mod/blog/views/default/river/object/blog/create.php
+++ b/mod/blog/views/default/river/object/blog/create.php
@@ -3,6 +3,12 @@
* Blog river view.
*/
+// @todo catch until riverdashboard plugin is updated
+if ($vars['item'] instanceof stdClass) {
+ echo "The riverdashboard plugin has not been updated yet to use the new ElggRiverItem Class";
+ return true;
+}
+
$object = $vars['item']->getObjectEntity();
$excerpt = strip_tags($object->excerpt);
$excerpt = elgg_get_excerpt($excerpt);