diff --git a/module/bug/control.php b/module/bug/control.php index 84e142b164..96808db83a 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -79,6 +79,7 @@ class bug extends control /* Load pager. */ $this->app->loadClass('pager', $static = true); + if($this->app->getViewType() == 'mhtml') $recPerPage = 10; $pager = pager::init($recTotal, $recPerPage, $pageID); $projects = $this->loadModel('project')->getPairs(); diff --git a/module/my/control.php b/module/my/control.php index c556843fee..b704775475 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -79,6 +79,7 @@ class my extends control /* Load pager. */ $this->app->loadClass('pager', $static = true); + if($this->app->getViewType() == 'mhtml') $recPerPage = 10; $pager = pager::init($recTotal, $recPerPage, $pageID); /* The header and position. */ @@ -118,6 +119,7 @@ class my extends control /* Load pager. */ $this->app->loadClass('pager', $static = true); + if($this->app->getViewType() == 'mhtml') $recPerPage = 10; $pager = pager::init($recTotal, $recPerPage, $pageID); /* Assign. */ @@ -153,6 +155,7 @@ class my extends control /* Load pager. */ $this->app->loadClass('pager', $static = true); + if($this->app->getViewType() == 'mhtml') $recPerPage = 10; $pager = pager::init($recTotal, $recPerPage, $pageID); /* Assign. */ @@ -189,6 +192,7 @@ class my extends control /* Load pager. */ $this->app->loadClass('pager', $static = true); + if($this->app->getViewType() == 'mhtml') $recPerPage = 10; $pager = pager::init($recTotal, $recPerPage, $pageID); $bugs = $this->loadModel('bug')->getUserBugs($this->app->user->account, $type, $orderBy, 0, $pager); diff --git a/module/product/control.php b/module/product/control.php index 0a69ee6b05..a783057f41 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -116,6 +116,7 @@ class product extends control /* Load pager. */ $this->app->loadClass('pager', $static = true); + if($this->app->getViewType() == 'mhtml') $recPerPage = 10; $pager = new pager($recTotal, $recPerPage, $pageID); /* Get stories. */ diff --git a/module/project/control.php b/module/project/control.php index 23de43052b..60a66afddf 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -137,6 +137,7 @@ class project extends control /* Load pager and get tasks. */ $this->app->loadClass('pager', $static = true); + if($this->app->getViewType() == 'mhtml') $recPerPage = 10; $pager = new pager($recTotal, $recPerPage, $pageID); $tasks = array();