http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89093

Revision: 89093
Author:   reedy
Date:     2011-05-29 12:15:10 +0000 (Sun, 29 May 2011)
Log Message:
-----------
Remove 1 unused global

Reformat some code

Modified Paths:
--------------
    trunk/extensions/BackAndForth/BackAndForth.class.php
    trunk/extensions/OpenSearchXml/OpenSearchXml.php

Modified: trunk/extensions/BackAndForth/BackAndForth.class.php
===================================================================
--- trunk/extensions/BackAndForth/BackAndForth.class.php        2011-05-29 
12:12:51 UTC (rev 89092)
+++ trunk/extensions/BackAndForth/BackAndForth.class.php        2011-05-29 
12:15:10 UTC (rev 89093)
@@ -13,7 +13,7 @@
         * @return bool
         */
        public static function viewHook( $article ) {
-               global $wgOut, $wgUser;
+               global $wgOut;
                $title = $article->getTitle();
                if ( MWNamespace::isContent( $title->getNamespace() ) ) {
                        $wgOut->addHTML( self::buildLinks( $title ) );

Modified: trunk/extensions/OpenSearchXml/OpenSearchXml.php
===================================================================
--- trunk/extensions/OpenSearchXml/OpenSearchXml.php    2011-05-29 12:12:51 UTC 
(rev 89092)
+++ trunk/extensions/OpenSearchXml/OpenSearchXml.php    2011-05-29 12:15:10 UTC 
(rev 89093)
@@ -54,6 +54,8 @@
 function efOpenSearchXmlTemplate() {
        global $wgServer, $wgScriptPath;
        $ns = implode( '|', SearchEngine::defaultNamespaces() );
-       if( !$ns ) $ns = '0';
-       return $wgServer . $wgScriptPath . 
'/api.php?action=opensearch&format=xml&search={searchTerms}&namespace='.$ns;
+       if( !$ns ) {
+               $ns = '0';
+       }
+       return $wgServer . $wgScriptPath . 
'/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=' . $ns;
 }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to