$this->mInterlangs[$key] = $title;
}
- foreach ( $this->mCategories as $cat => &$sortkey ) {
+ foreach ( $this->mCategories as &$sortkey ) {
# If the sortkey is longer then 255 bytes,
# it truncated by DB, and then doesn't get
# matched when comparing existing vs current
* @param $pairs array Pair of (zone, rel) pairs to delete
*/
function cleanupBatch( $pairs ) {
- foreach ( $pairs as $i => $pair ) {
+ foreach ( $pairs as $pair ) {
list( $zone, $rel ) = $pair;
$root = $this->getZonePath( $zone );
$path = "$root/$rel";
return $status;
}
- $db = $this->getVar( 'wgDBname' );
$schema = $this->getVar( 'wgDBmwschema' );
$safeuser = $this->db->addIdentifierQuotes( $this->getVar( 'wgDBuser' ) );
$safeusercheck = $this->db->addQuotes( $this->getVar( 'wgDBuser' ) );
$html = array();
$html[] = $this->openList( 0 );
- foreach ( $dupes as $key => $dupe ) {
+ foreach ( $dupes as $dupe ) {
$line = $this->formatResult( $skin, $dupe );
$html[] = "<li>" . $line . "</li>";
}
$localFile = $this->getLocalFile();
$filename = $localFile->getName();
- $n = strrpos( $filename, '.' );
/**
* Check whether the resulting filename is different from the desired one,
global $wgRequest;
$this->skin = $skin = $this->data['skin'];
- $action = $wgRequest->getText( 'action' );
// Suppress warnings to prevent notices about missing indexes in $this->data
wfSuppressWarnings();