From: Ævar Arnfjörð Bjarmason Date: Fri, 16 Sep 2005 16:35:36 +0000 (+0000) Subject: * Making the paramater a title object X-Git-Tag: 1.6.0~1628 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/journal.php?a=commitdiff_plain;h=38906af0e87c7fcebfdb77fa5a2b73c5594def71;p=lhc%2Fweb%2Fwiklou.git * Making the paramater a title object --- diff --git a/includes/SpecialLicensesearch.php b/includes/SpecialLicensesearch.php index cf2361a669..4e0ce370fc 100644 --- a/includes/SpecialLicensesearch.php +++ b/includes/SpecialLicensesearch.php @@ -70,7 +70,9 @@ function wfSpecialLicensesearch( $par = null ) { global $wgRequest, $wgTitle, $wgOut; $license = isset( $par ) ? $par : $wgRequest->getText( 'license' ); - + $license = Title::newFromText( $license ); + $license = is_object( $license ) ? $license->getText() : ''; + $wgOut->addHTML( wfElement( 'form', array( @@ -101,8 +103,7 @@ function wfSpecialLicensesearch( $par = null ) { wfCloseElement( 'form' ) ); - $license = trim( $license, ' ' ); - if ($license == '') + if ( $license == '' ) return; $license = wfSpecialLicensesearchLicense( $license );