dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Miscellaneous profiling fixes
[lhc/web/wiklou.git]
/
opensearch_desc.php
diff --git
a/opensearch_desc.php
b/opensearch_desc.php
index
a5e48fa
..
95f028a
100644
(file)
--- a/
opensearch_desc.php
+++ b/
opensearch_desc.php
@@
-20,7
+20,7
@@
* @file
*/
* @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
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.
//
// Behavior seems about the same between Firefox and IE 7/8 here.
// 'Description' doesn't appear to be used by either.
-$fullName = wfM
sgForContent( 'opensearch-desc'
);
+$fullName = wfM
essage( 'opensearch-desc' )->inContentLanguage()->text(
);
print Xml::element( 'ShortName', null, $fullName );
print Xml::element( 'Description', null, $fullName );
print Xml::element( 'ShortName', null, $fullName );
print Xml::element( 'Description', null, $fullName );