Index: trunk/extensions/BackAndForth/BackAndForth.class.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | * @return bool |
15 | 15 | */ |
16 | 16 | public static function viewHook( $article ) { |
17 | | - global $wgOut, $wgUser; |
| 17 | + global $wgOut; |
18 | 18 | $title = $article->getTitle(); |
19 | 19 | if ( MWNamespace::isContent( $title->getNamespace() ) ) { |
20 | 20 | $wgOut->addHTML( self::buildLinks( $title ) ); |
Index: trunk/extensions/OpenSearchXml/OpenSearchXml.php |
— | — | @@ -54,6 +54,8 @@ |
55 | 55 | function efOpenSearchXmlTemplate() { |
56 | 56 | global $wgServer, $wgScriptPath; |
57 | 57 | $ns = implode( '|', SearchEngine::defaultNamespaces() ); |
58 | | - if( !$ns ) $ns = '0'; |
59 | | - return $wgServer . $wgScriptPath . '/api.php?action=opensearch&format=xml&search={searchTerms}&namespace='.$ns; |
| 58 | + if( !$ns ) { |
| 59 | + $ns = '0'; |
| 60 | + } |
| 61 | + return $wgServer . $wgScriptPath . '/api.php?action=opensearch&format=xml&search={searchTerms}&namespace=' . $ns; |
60 | 62 | } |