fix strict standard errors
This commit is contained in:
parent
34e90c1cfc
commit
e78ddc69f3
4 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
class Layout {
|
||||
function display_page($page) {
|
||||
function display_page(Page $page) {
|
||||
global $config;
|
||||
|
||||
$theme_name = $config->get_string('theme', 'default');
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
class CustomUserPageTheme extends UserPageTheme {
|
||||
public function display_login_page($page) {
|
||||
public function display_login_page(Page $page) {
|
||||
global $config;
|
||||
$page->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 = "<table id='ip-history' style='width: 400px;'>";
|
||||
$html .= "<tr><td>Uploaded from: ";
|
||||
foreach($uploads as $ip => $count) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
class CustomViewImageTheme extends ViewImageTheme {
|
||||
public function display_page($image, $editor_parts) {
|
||||
public function display_page(Image $image, $editor_parts) {
|
||||
global $page;
|
||||
$metatags = str_replace(" ", ", ", html_escape($image->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 = "<a href='".make_link("user/$h_owner")."'>$h_owner</a>";
|
||||
$h_ip = html_escape($image->owner_ip);
|
||||
|
|
Reference in a new issue