$wgOut->addWikiText( wfMsg( 'perfdisabled' ) );
return;
}
-
+
# Get parameters from the URL
$submitmll = $wgRequest->getVal( 'submitmll' );
# Call the subfunction requested by the user
switch( $subfunction ) {
case 'disambiguations': return wfSpecialDisambiguations();
-
+
# doubleredirects & brokenredirects are old maintenance subpages.
case 'doubleredirects': return wfSpecialDoubleRedirects();
case 'brokenredirects': return wfSpecialBrokenRedirects();
-
+
case 'selflinks': return wfSpecialSelfLinks() ;
case 'mispeelings': return wfSpecialMispeelings() ;
case 'missinglanguagelinks': return wfSpecialMissingLanguageLinks();
}
-
+
if ( !is_null( $submitmll ) ) return wfSpecialMissingLanguageLinks() ;
$sk = $wgUser->getSkin();
# Generate page output
-
+
$r = wfMsg('maintnancepagetext') ;
-
+
# Links to subfunctions
$r .= "<ul>\n" ;
$r .= "<li>".$sk->makeKnownLink( sns().':Disambiguations', wfMsg('disambiguations')) . "</li>\n";
$r .= htmlspecialchars(wfMsg('missinglanguagelinksbutton'), ENT_QUOTES);
$r .= "\" />\n" ;
$r .= "<select name=\"thelang\">\n" ;
-
+
$a = $wgContLang->getLanguageNames();
$ak = array_keys ( $a ) ;
foreach ( $ak AS $k ) {
$wgContLang->getNsText( NS_SPECIAL ) . ':Maintenance',
wfMsg( 'maintenancebacklink' ) ) ;
$t = wfMsg ( $subfunction ) ;
-
+
$s = '<table width="100%" border="0"><tr><td>';
$s .= '<h2>'.$t.'</h2></td><td align="right">';
$s .= "{$r}</td></tr></table>\n" ;
list( $limit, $offset ) = wfCheckLimits();
- $sql = "SELECT page_namespace,page_title FROM page,links " .
- "WHERE l_from=l_to AND l_to=page_id " .
+ $sql = "SELECT page_namespace,page_title FROM page,links " .
+ "WHERE l_from=l_to AND l_to=page_id " .
"LIMIT {$offset}, {$limit}";
$res = wfQuery( $sql, DB_SLAVE, $fname );
}
/**
- *
+ *
*/
function wfSpecialMispeelings () {
global $wgUser, $wgOut, $wgContLang;
*/
function wfSpecialMissingLanguageLinks() {
global $wgUser, $wgOut, $wgContLang, $wgRequest;
-
+
$fname = 'wfSpecialMissingLanguageLinks';
$thelang = $wgRequest->getText( 'thelang' );
if ( $thelang == 'w' ) $thelang = 'en' ; # Fix for international wikis