From e78ddc69f3df18e9d2faf5789a5bbef85931781e Mon Sep 17 00:00:00 2001 From: Daku Date: Tue, 25 Feb 2014 21:51:52 +0000 Subject: [PATCH] fix strict standard errors --- themes/futaba/comment.theme.php | 2 +- themes/futaba/layout.class.php | 2 +- themes/lite/user.theme.php | 10 +++++----- themes/lite/view.theme.php | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/themes/futaba/comment.theme.php b/themes/futaba/comment.theme.php index 33a55ea0..f65b0b14 100644 --- a/themes/futaba/comment.theme.php +++ b/themes/futaba/comment.theme.php @@ -56,7 +56,7 @@ class CustomCommentListTheme extends CommentListTheme { } - protected function comment_to_html(Comment $comment, $trim=false) { + protected function comment_to_html($comment, $trim=false) { $inner_id = $this->inner_id; // because custom themes can't add params, because PHP global $user; diff --git a/themes/futaba/layout.class.php b/themes/futaba/layout.class.php index fb8dffd6..b42c9ad2 100644 --- a/themes/futaba/layout.class.php +++ b/themes/futaba/layout.class.php @@ -1,7 +1,7 @@ get_string('theme', 'default'); diff --git a/themes/lite/user.theme.php b/themes/lite/user.theme.php index 9aa476ab..f3b11a8d 100644 --- a/themes/lite/user.theme.php +++ b/themes/lite/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", ""); @@ -74,7 +74,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/lite/view.theme.php b/themes/lite/view.theme.php index c86ceb92..419b3571 100644 --- a/themes/lite/view.theme.php +++ b/themes/lite/view.theme.php @@ -1,7 +1,7 @@ get_tag_list())); $page->set_title("Image {$image->id}: ".html_escape($image->get_tag_list())); @@ -17,7 +17,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);