diff --git a/modules/calendarview/controllers/calendarview.php b/modules/calendarview/controllers/calendarview.php index f5502b9b..c17f7ecf 100644 --- a/modules/calendarview/controllers/calendarview.php +++ b/modules/calendarview/controllers/calendarview.php @@ -68,7 +68,7 @@ class CalendarView_Controller extends Controller { // Figure out paging stuff. $page_size = module::get_var("gallery", "page_size", 9); - $page = (int) $this->input->get("page", "1"); + $page = (int) Input::instance()->get("page", "1"); $offset = ($page-1) * $page_size; $max_pages = max(ceil($day_count / $page_size), 1); @@ -144,7 +144,7 @@ class CalendarView_Controller extends Controller { // Figure out paging stuff. $page_size = module::get_var("gallery", "page_size", 9); - $page = (int) $this->input->get("page", "1"); + $page = (int) Input::instance()->get("page", "1"); $offset = ($page-1) * $page_size; $max_pages = max(ceil($day_count / $page_size), 1); diff --git a/modules/dynamic/controllers/dynamic.php b/modules/dynamic/controllers/dynamic.php index d0263880..b15a87a4 100644 --- a/modules/dynamic/controllers/dynamic.php +++ b/modules/dynamic/controllers/dynamic.php @@ -27,7 +27,7 @@ class Dynamic_Controller extends Controller { private function _show($album) { $page_size = module::get_var("gallery", "page_size", 9); - $page = $this->input->get("page", "1"); + $page = Input::instance()->get("page", "1"); $album_defn = unserialize(module::get_var("dynamic", $album)); $children_count = $album_defn->limit; diff --git a/modules/latestupdates/controllers/latestupdates.php b/modules/latestupdates/controllers/latestupdates.php index d49026db..35180bf0 100644 --- a/modules/latestupdates/controllers/latestupdates.php +++ b/modules/latestupdates/controllers/latestupdates.php @@ -25,7 +25,7 @@ class latestupdates_Controller extends Controller { // Figure out which page # the visitor is on and // don't allow the visitor to go below page 1. - $page = $this->input->get("page", 1); + $page = Input::instance()->get("page", 1); if ($page < 1) { url::redirect("latestupdates/albums/{$item->id}"); } @@ -86,7 +86,7 @@ class latestupdates_Controller extends Controller { // Figure out which page # the visitor is on and // don't allow the visitor to go below page 1. - $page = $this->input->get("page", 1); + $page = Input::instance()->get("page", 1); if ($page < 1) { url::redirect("latestupdates/updates"); }