replace TYPE= with ENGINE=, (supported since 4.0, TYPE deprecated since 4.1)
[lhc/web/wiklou.git] / includes / SpecialRecentchanges.php
index 32f9f05..5f5c81b 100644 (file)
@@ -72,7 +72,7 @@ function wfSpecialRecentchanges( $par, $specialPage ) {
                $hideliu = $wgRequest->getBool( 'hideliu', $defaults['hideliu'] );
                $hidepatrolled = $wgRequest->getBool( 'hidepatrolled', $defaults['hidepatrolled'] );
                $hidemyself = $wgRequest->getBool ( 'hidemyself', $defaults['hidemyself'] );
-               $from = $wgRequest->getVal( 'from', $defaults['from'] );        
+               $from = $wgRequest->getVal( 'from', $defaults['from'] );
 
                # Get query parameters from path
                if( $par ) {
@@ -366,7 +366,6 @@ function rcOutputFeed( $rows, $feedFormat, $limit, $hideminor, $lastmod ) {
 }
 
 function rcDoOutputFeed( $rows, &$feed ) {
-       global $wgSitename, $wgFeedClasses, $wgContLanguageCode;
        $fname = 'rcDoOutputFeed';
        wfProfileIn( $fname );
 
@@ -456,7 +455,7 @@ function rcDayLimitLinks( $days, $limit, $page='Recentchanges', $more='', $doall
  * Makes change an option link which carries all the other options
  */
 function makeOptionsLink( $title, $override, $options ) {
-       global $wgUser, $wgLang, $wgContLang;
+       global $wgUser, $wgContLang;
        $sk = $wgUser->getSkin();
        return $sk->makeKnownLink( $wgContLang->specialPage( 'Recentchanges' ),
                $title, wfArrayToCGI( $override, $options ) );
@@ -505,7 +504,7 @@ function rcOptionsPanel( $defaults, $nondefaults ) {
                array( 'hideliu' => 1-$options['hideliu'] ), $nondefaults);
        $patrLink  = makeOptionsLink( $showhide[1-$options['hidepatrolled']],
                array( 'hidepatrolled' => 1-$options['hidepatrolled'] ), $nondefaults);
-       $myselfLink = makeOptionsLink( $showhide[1-$options['hidemyself']], 
+       $myselfLink = makeOptionsLink( $showhide[1-$options['hidemyself']],
                array( 'hidemyself' => 1-$options['hidemyself'] ), $nondefaults);
        $hl = wfMsg( 'showhideminor', $minorLink, $botLink, $liuLink, $patrLink, $myselfLink );
        
@@ -533,7 +532,7 @@ function rcOptionsPanel( $defaults, $nondefaults ) {
  * @return string
  */
 function rcNamespaceForm( $namespace, $invert, $nondefaults, $categories_any ) {
-       global $wgContLang, $wgScript, $wgAllowCategorizedRecentChanges, $wgRequest;
+       global $wgScript, $wgAllowCategorizedRecentChanges, $wgRequest;
        $t = Title::makeTitle( NS_SPECIAL, 'Recentchanges' );
 
        $namespaceselect = HTMLnamespaceselector($namespace, '');