X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FLocalRepo.php;h=ed00793508ce7e9cdeb2c7ecf77be3d954a01050;hp=d91ab24e9c94d6a327940497ed3b5b9334653bc8;hb=3df3b575c6617df64ec98533cc7141bd2314e274;hpb=6fbafe5494440f5c37686b250ed759f6a96271b9 diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index d91ab24e9c..ed00793508 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -274,14 +274,13 @@ class LocalRepo extends FileRepo { ); }; - $that = $this; $applyMatchingFiles = function ( ResultWrapper $res, &$searchSet, &$finalFiles ) - use ( $that, $fileMatchesSearch, $flags ) + use ( $fileMatchesSearch, $flags ) { global $wgContLang; - $info = $that->getInfo(); + $info = $this->getInfo(); foreach ( $res as $row ) { - $file = $that->newFileFromRow( $row ); + $file = $this->newFileFromRow( $row ); // There must have been a search for this DB key, but this has to handle the // cases were title capitalization is different on the client and repo wikis. $dbKeysLook = [ strtr( $file->getName(), ' ', '_' ) ]; @@ -483,7 +482,7 @@ class LocalRepo extends FileRepo { * @return Closure */ protected function getDBFactory() { - return function( $index ) { + return function ( $index ) { return wfGetDB( $index ); }; }