From 9c98ef49e5591f51a16d13f5e89b3046fe03524e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Wed, 17 Jan 2007 22:44:34 +0000 Subject: [PATCH] * Use the nice xml function we have --- includes/SpecialLog.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 4fc6aa7f49..188f9c9397 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -357,11 +357,11 @@ class LogViewer { $title = SpecialPage::getTitleFor( 'Log' ); $special = htmlspecialchars( $title->getPrefixedDBkey() ); $out->addHTML( "
\n" . - "\n" . - $this->getTypeMenu() . - $this->getUserInput() . - $this->getTitleInput() . - "" . + Xml::hidden( 'title', $special ) . "\n" . + $this->getTypeMenu() . "\n" . + $this->getUserInput() . "\n" . + $this->getTitleInput() . "\n" . + Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" . "
" ); } @@ -372,11 +372,11 @@ class LogViewer { function getTypeMenu() { $out = "\n"; + $out .= ''; return $out; } @@ -385,8 +385,8 @@ class LogViewer { * @private */ function getUserInput() { - $user = htmlspecialchars( $this->reader->queryUser() ); - return wfMsg('specialloguserlabel') . "\n"; + $user = $this->reader->queryUser(); + return Xml::inputLabel( wfMsg( 'specialloguserlabel' ), 'user', 'user', 12, $user ); } /** @@ -394,8 +394,8 @@ class LogViewer { * @private */ function getTitleInput() { - $title = htmlspecialchars( $this->reader->queryTitle() ); - return wfMsg('speciallogtitlelabel') . "\n"; + $title = $this->reader->queryTitle(); + return Xml::inputLabel( wfMsg( 'speciallogtitlelabel' ), 'page', 'page', 20, $title ); } /** -- 2.20.1