From 29a75560a1be1e1ea2a459a0ec0e168014f9f8d6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 12 Mar 2005 16:35:27 +0000 Subject: [PATCH] fixint the problems pointed out by GulfTech, thought they should be fixed in the categories class --- preferences/inc/class.bocategories.inc.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/preferences/inc/class.bocategories.inc.php b/preferences/inc/class.bocategories.inc.php index a49dc421b8..1e06c6b7cb 100644 --- a/preferences/inc/class.bocategories.inc.php +++ b/preferences/inc/class.bocategories.inc.php @@ -22,15 +22,14 @@ function bocategories($cats_app='') { - $this->cats = CreateObject('phpgwapi.categories'); - $this->cats->app_name = $cats_app; + $this->cats =& CreateObject('phpgwapi.categories','',$cats_app); $this->read_sessiondata($cats_app); - $start = $GLOBALS['HTTP_POST_VARS']['start'] ? $GLOBALS['HTTP_POST_VARS']['start'] : $GLOBALS['HTTP_GET_VARS']['start']; - $query = $GLOBALS['HTTP_POST_VARS']['query'] ? $GLOBALS['HTTP_POST_VARS']['query'] : $GLOBALS['HTTP_GET_VARS']['query']; - $sort = $GLOBALS['HTTP_POST_VARS']['sort'] ? $GLOBALS['HTTP_POST_VARS']['sort'] : $GLOBALS['HTTP_GET_VARS']['sort']; - $order = $GLOBALS['HTTP_POST_VARS']['order'] ? $GLOBALS['HTTP_POST_VARS']['order'] : $GLOBALS['HTTP_GET_VARS']['order']; + $start = $_POST['start'] ? $_POST['start'] : $_GET['start']; + $query = $_POST['query'] ? $_POST['query'] : $_GET['query']; + $sort = $_POST['sort'] ? $_POST['sort'] : $_GET['sort']; + $order = $_POST['order'] ? $_POST['order'] : $_GET['order']; if(!empty($start) || $start == '0' || $start == 0) { @@ -54,13 +53,13 @@ function save_sessiondata($data, $cats_app) { $colum = $cats_app . '_cats'; - $GLOBALS['phpgw']->session->appsession('session_data',$column,$data); + $GLOBALS['egw']->session->appsession('session_data',$column,$data); } function read_sessiondata($cats_app) { $colum = $cats_app . '_cats'; - $data = $GLOBALS['phpgw']->session->appsession('session_data',$column); + $data = $GLOBALS['egw']->session->appsession('session_data',$column); $this->start = $data['start']; $this->query = $data['query'];