From: Ben Klang Date: Tue, 26 Jan 2010 18:38:39 +0000 (-0500) Subject: Operator: Make sure we keep a copy of the Application object X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1533ffaf9cfd3c06080e0e272abf9fa49228924a;p=horde.git Operator: Make sure we keep a copy of the Application object --- diff --git a/operator/viewgraph.php b/operator/viewgraph.php index b8787e4a4..ab93a6a4e 100644 --- a/operator/viewgraph.php +++ b/operator/viewgraph.php @@ -9,7 +9,7 @@ */ require_once dirname(__FILE__) . '/lib/Application.php'; -Horde_Registry::appInit('operator'); +$operator = Horde_Registry::appInit('operator'); require_once OPERATOR_BASE . '/lib/Form/SearchCDR.php'; @@ -33,7 +33,7 @@ if ($form->isSubmitted() && $form->validate($vars, true)) { ($end->year - $start->year) == 0) { // FIXME: This should not cause an error but is due to a bug in // Image_Graph. - $notification->push(_("You must select a range that includes more than one month to view these graphs.")); + $notification->push(_("You must select a range that includes more than one month to view these graphs."), 'horde.warning'); } else { // See if we have cached data $cachekey = md5(serialize(array('getMonthlyCallStats', $start, $end,