From: Jan Schneider Date: Wed, 30 Dec 2009 18:03:36 +0000 (+0100) Subject: MFB: Set filter_seen and show_filter_msg parameters here too. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8a9ef6009a6ab2de4dc4ff0373ac9a92cfc2701c;p=horde.git MFB: Set filter_seen and show_filter_msg parameters here too. --- 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); } /**