From: Niklas Laxström Date: Wed, 17 Jan 2007 22:44:34 +0000 (+0000) Subject: * Use the nice xml function we have X-Git-Tag: 1.31.0-rc.0~54326 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=9c98ef49e5591f51a16d13f5e89b3046fe03524e;p=lhc%2Fweb%2Fwiklou.git * Use the nice xml function we have --- 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 ); } /**