diff --git a/ext/pools/theme.php b/ext/pools/theme.php index 633cc8ad..d9c397c7 100644 --- a/ext/pools/theme.php +++ b/ext/pools/theme.php @@ -394,8 +394,11 @@ class PoolsTheme extends Themelet { /** * Display an error message to the user. */ - public function display_error(/*string*/ $errMessage) { + public function display_error(/*int*/ $code, /*string*/ $title, /*string*/ $message) { global $page; + + // Quick n' Dirty fix + $message = $code; $page->set_title("Error"); $page->set_heading("Error"); diff --git a/themes/danbooru/comment.theme.php b/themes/danbooru/comment.theme.php index fea07ba4..f9fcdfca 100644 --- a/themes/danbooru/comment.theme.php +++ b/themes/danbooru/comment.theme.php @@ -87,7 +87,7 @@ class CustomCommentListTheme extends CommentListTheme { } - protected function comment_to_html(Comment $comment, $trim=false) { + protected function comment_to_html($comment, $trim=false) { global $user; $tfe = new TextFormattingEvent($comment->comment); 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 = "
Uploaded from: "; foreach($uploads as $ip => $count) { diff --git a/themes/danbooru/view.theme.php b/themes/danbooru/view.theme.php index d7f0008b..5cea87ce 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())); |