1
0

Convert Controller::$input -> Input::instance()

This commit is contained in:
Bharat Mediratta 2009-12-24 11:09:07 -08:00
parent 1ed3c46997
commit 8658a609fd
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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");
}