From 35a3986c35e44613592084ab7d68e214837e2e31 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 30 Dec 2012 15:46:25 +0000 Subject: [PATCH] compatible declrations for danbooru theme --- themes/danbooru/index.theme.php | 2 +- themes/danbooru/tag_list.theme.php | 2 +- themes/danbooru/upload.theme.php | 4 ++-- themes/danbooru/user.theme.php | 10 +++++----- themes/danbooru/view.theme.php | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/themes/danbooru/index.theme.php b/themes/danbooru/index.theme.php index 79e02e6a..155e4a24 100644 --- a/themes/danbooru/index.theme.php +++ b/themes/danbooru/index.theme.php @@ -1,7 +1,7 @@ search_terms) == 0) { diff --git a/themes/danbooru/tag_list.theme.php b/themes/danbooru/tag_list.theme.php index 37290e40..3c168380 100644 --- a/themes/danbooru/tag_list.theme.php +++ b/themes/danbooru/tag_list.theme.php @@ -1,7 +1,7 @@ disable_left(); parent::display_page($page); } diff --git a/themes/danbooru/upload.theme.php b/themes/danbooru/upload.theme.php index b67ca974..7e5f75bf 100644 --- a/themes/danbooru/upload.theme.php +++ b/themes/danbooru/upload.theme.php @@ -1,12 +1,12 @@ add_block(new Block("Upload", $this->build_upload_block(), "left", 20)); } - public function display_page($page) { + public function display_page(Page $page) { $page->disable_left(); parent::display_page($page); } diff --git a/themes/danbooru/user.theme.php b/themes/danbooru/user.theme.php index 51e3b32b..ca62caa8 100644 --- a/themes/danbooru/user.theme.php +++ b/themes/danbooru/user.theme.php @@ -1,7 +1,7 @@ set_title("Login"); $page->set_heading("Login"); @@ -27,14 +27,14 @@ class CustomUserPageTheme extends UserPageTheme { $page->add_block(new Block("Login", $html, "main", 90)); } - public function display_user_links($page, $user, $parts) { + public function display_user_links(Page $page, User $user, $parts) { // no block in this theme } public function display_login_block(Page $page) { // no block in this theme } - public function display_user_block($page, $user, $parts) { + public function display_user_block(Page $page, User $user, $parts) { $h_name = html_escape($user->name); $html = ""; $blocked = array("Pools", "Pool Changes", "Alias Editor", "My Profile"); @@ -45,7 +45,7 @@ class CustomUserPageTheme extends UserPageTheme { $page->add_block(new Block("User Links", $html, "user", 90)); } - public function display_signup_page($page) { + public function display_signup_page(Page $page) { global $config; $tac = $config->get_string("login_tac", ""); @@ -77,7 +77,7 @@ class CustomUserPageTheme extends UserPageTheme { $page->add_block(new Block("Signup", $html)); } - public function display_ip_list($page, $uploads, $comments) { + public function display_ip_list(Page $page, $uploads, $comments) { $html = ""; $html .= "
Uploaded from: "; foreach($uploads as $ip => $count) { diff --git a/themes/danbooru/view.theme.php b/themes/danbooru/view.theme.php index d7f0008b..19aa4fcf 100644 --- a/themes/danbooru/view.theme.php +++ b/themes/danbooru/view.theme.php @@ -1,7 +1,7 @@ set_title("Image {$image->id}: ".html_escape($image->get_tag_list())); $page->set_heading(html_escape($image->get_tag_list())); @@ -11,7 +11,7 @@ class CustomViewImageTheme extends ViewImageTheme { $page->add_block(new Block(null, $this->build_pin($image), "main", 11)); } - private function build_stats($image) { + private function build_stats(Image $image) { $h_owner = html_escape($image->get_owner()->name); $h_ownerlink = "$h_owner"; $h_ip = html_escape($image->owner_ip);