Convert Controller::$input -> Input::instance()
This commit is contained in:
parent
1ed3c46997
commit
8658a609fd
@ -68,7 +68,7 @@ class CalendarView_Controller extends Controller {
|
|||||||
|
|
||||||
// Figure out paging stuff.
|
// Figure out paging stuff.
|
||||||
$page_size = module::get_var("gallery", "page_size", 9);
|
$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;
|
$offset = ($page-1) * $page_size;
|
||||||
$max_pages = max(ceil($day_count / $page_size), 1);
|
$max_pages = max(ceil($day_count / $page_size), 1);
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ class CalendarView_Controller extends Controller {
|
|||||||
|
|
||||||
// Figure out paging stuff.
|
// Figure out paging stuff.
|
||||||
$page_size = module::get_var("gallery", "page_size", 9);
|
$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;
|
$offset = ($page-1) * $page_size;
|
||||||
$max_pages = max(ceil($day_count / $page_size), 1);
|
$max_pages = max(ceil($day_count / $page_size), 1);
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class Dynamic_Controller extends Controller {
|
|||||||
|
|
||||||
private function _show($album) {
|
private function _show($album) {
|
||||||
$page_size = module::get_var("gallery", "page_size", 9);
|
$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));
|
$album_defn = unserialize(module::get_var("dynamic", $album));
|
||||||
$children_count = $album_defn->limit;
|
$children_count = $album_defn->limit;
|
||||||
|
@ -25,7 +25,7 @@ class latestupdates_Controller extends Controller {
|
|||||||
|
|
||||||
// Figure out which page # the visitor is on and
|
// Figure out which page # the visitor is on and
|
||||||
// don't allow the visitor to go below page 1.
|
// 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) {
|
if ($page < 1) {
|
||||||
url::redirect("latestupdates/albums/{$item->id}");
|
url::redirect("latestupdates/albums/{$item->id}");
|
||||||
}
|
}
|
||||||
@ -86,7 +86,7 @@ class latestupdates_Controller extends Controller {
|
|||||||
|
|
||||||
// Figure out which page # the visitor is on and
|
// Figure out which page # the visitor is on and
|
||||||
// don't allow the visitor to go below page 1.
|
// 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) {
|
if ($page < 1) {
|
||||||
url::redirect("latestupdates/updates");
|
url::redirect("latestupdates/updates");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user