Merge pull request #270 from Diftraku/master
Fix PHP errors about Strict Standards
This commit is contained in:
commit
17cd89455d
2 changed files with 5 additions and 2 deletions
|
@ -394,8 +394,11 @@ class PoolsTheme extends Themelet {
|
||||||
/**
|
/**
|
||||||
* Display an error message to the user.
|
* 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;
|
global $page;
|
||||||
|
|
||||||
|
// Quick n' Dirty fix
|
||||||
|
$message = $code;
|
||||||
|
|
||||||
$page->set_title("Error");
|
$page->set_title("Error");
|
||||||
$page->set_heading("Error");
|
$page->set_heading("Error");
|
||||||
|
|
|
@ -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;
|
global $user;
|
||||||
|
|
||||||
$tfe = new TextFormattingEvent($comment->comment);
|
$tfe = new TextFormattingEvent($comment->comment);
|
||||||
|
|
Reference in a new issue