From 6bb264462259be59d47ed084712bcdcfb0887f19 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sun, 18 Sep 2011 07:36:36 +0000 Subject: [PATCH] * adjust the cookie name of the page cookie. --- lib/pager/pager.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pager/pager.class.php b/lib/pager/pager.class.php index ce38188957..84f3aaddd2 100755 --- a/lib/pager/pager.class.php +++ b/lib/pager/pager.class.php @@ -160,7 +160,7 @@ class pager public function setRecPerPage($recPerPage) { /* Set the cookie name. */ - $this->pageCookie = $this->app->getModuleName() . $this->app->getMethodName(); + $this->pageCookie = 'pager' . ucfirst($this->app->getModuleName()) . ucfirst($this->app->getMethodName()); if(isset($_COOKIE[$this->pageCookie])) $recPerPage = $_COOKIE[$this->pageCookie]; $this->recPerPage = ($recPerPage > 0) ? $recPerPage : PAGER::DEFAULT_REC_PRE_PAGE;