From 6938e710eb7a7672f2a0f12c440e487c4f049954 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 14 Sep 2010 10:32:33 -0400 Subject: [PATCH] Remove undefined $order variable; fix changed array index (story_body -> body) --- jonah/lib/Api.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jonah/lib/Api.php b/jonah/lib/Api.php index 3f25a433f..8ed5b9b43 100644 --- a/jonah/lib/Api.php +++ b/jonah/lib/Api.php @@ -50,13 +50,12 @@ class Jonah_Api extends Horde_Registry_Api 'limit' => $filter->get('max_stories', 10), 'startnumber' => $filter->get('start_at', 0), 'published' => true, - ), - $order + ) ); foreach (array_keys($stories) as $s) { if (empty($stories[$s]['body_type']) || $stories[$s]['body_type'] == 'text') { - $stories[$s]['body_html'] = $GLOBALS['injector']->getInstance('Horde_Text_Filter')->filter($stories[$s]['story_body'], 'text2html', array('parselevel' => Horde_Text_Filter_Text2html::MICRO)); + $stories[$s]['body_html'] = $GLOBALS['injector']->getInstance('Horde_Text_Filter')->filter($stories[$s]['body'], 'text2html', array('parselevel' => Horde_Text_Filter_Text2html::MICRO)); } else { $stories[$s]['body_html'] = $stories[$s]['body']; } -- 2.11.0