X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=opensearch_desc.php;h=95f028ac73ed30cedb3c945b7d12db907c11581d;hb=f93c9a428fca9c029425c859a63517cab81ff8e0;hp=a5e48fa77c0ae51fc0a31cab06b57f0d1743a451;hpb=4fa67221df791c05f57163cc8e9b8fd08cc7d19e;p=lhc%2Fweb%2Fwiklou.git diff --git a/opensearch_desc.php b/opensearch_desc.php index a5e48fa77c..95f028ac73 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -20,7 +20,7 @@ * @file */ -require_once( dirname(__FILE__) . '/includes/WebStart.php' ); +require_once( __DIR__ . '/includes/WebStart.php' ); if( $wgRequest->getVal( 'ctype' ) == 'application/xml' ) { // Makes testing tweaks about a billion times easier @@ -54,7 +54,7 @@ print Xml::openElement( 'OpenSearchDescription', // // Behavior seems about the same between Firefox and IE 7/8 here. // 'Description' doesn't appear to be used by either. -$fullName = wfMsgForContent( 'opensearch-desc' ); +$fullName = wfMessage( 'opensearch-desc' )->inContentLanguage()->text(); print Xml::element( 'ShortName', null, $fullName ); print Xml::element( 'Description', null, $fullName );