From 8a9ef6009a6ab2de4dc4ff0373ac9a92cfc2701c Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 30 Dec 2009 19:03:36 +0100 Subject: [PATCH] MFB: Set filter_seen and show_filter_msg parameters here too. --- ingo/lib/Api.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ingo/lib/Api.php b/ingo/lib/Api.php index a8e1189aa..c6b4dc282 100644 --- a/ingo/lib/Api.php +++ b/ingo/lib/Api.php @@ -110,11 +110,17 @@ class Ingo_Api extends Horde_Registry_Api if (!empty($GLOBALS['ingo_shares'])) { $_SESSION['ingo']['current_share'] = $signature; } - $ingo_script = Ingo::loadIngoScript(); - return $ingo_script - ? $ingo_script->perform($params) - : false; + if (!$ingo_script) { + return false; + } + if (!isset($params['filter_seen'])) { + $params['filter_seen'] = $GLOBALS['prefs']->getValue('filter_seen'); + } + if (!isset($params['show_filter_msg'])) { + $params['show_filter_msg'] = $GLOBALS['prefs']->getValue('show_filter_msg'); + } + return $ingo_script->perform($params); } /** -- 2.11.0