From: Nick Jenkins Date: Tue, 19 Dec 2006 05:35:35 +0000 (+0000) Subject: * prevent minor W3C validator/tidy error on Special:Booksources about nesting of... X-Git-Tag: 1.31.0-rc.0~54843 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=b0f18ca26464cf8fd2fec144533368f202520a52;p=lhc%2Fweb%2Fwiklou.git * prevent minor W3C validator/tidy error on Special:Booksources about nesting of "" tag by swapping the order of two lines. * stop minor tidy warning: " attribute 'size' lacks value", by setting size to 20 (which allows enough visual field width for 10 ISBN digits + some leeway for extra dashes and spaces and whatnot). --- diff --git a/includes/SpecialBooksources.php b/includes/SpecialBooksources.php index 85b34cadcf..697edca7d7 100644 --- a/includes/SpecialBooksources.php +++ b/includes/SpecialBooksources.php @@ -58,10 +58,10 @@ class SpecialBookSources extends SpecialPage { $form = '
' . wfMsgHtml( 'booksources-search-legend' ) . ''; $form .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ); $form .= Xml::hidden( 'title', $title->getPrefixedText() ); - $form .= '

' . Xml::inputLabel( wfMsg( 'booksources-isbn' ), 'isbn', 'isbn', false, $this->isbn ); + $form .= '

' . Xml::inputLabel( wfMsg( 'booksources-isbn' ), 'isbn', 'isbn', 20, $this->isbn ); $form .= ' ' . Xml::submitButton( wfMsg( 'booksources-go' ) ) . '

'; - $form .= '
'; $form .= Xml::closeElement( 'form' ); + $form .= ''; return $form; }