From 9db190c7e736ec8d063187d4241b59feaf7dc2d1 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 22 Jun 2011 11:28:20 +0200 Subject: update to MediaWiki 1.17.0 --- includes/filerepo/LocalRepo.php | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'includes/filerepo/LocalRepo.php') diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index 6c4d21a2..02883c53 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -1,4 +1,12 @@ fetchObject() ) + foreach ( $res as $row ) { $result[] = $this->newFileFromRow( $row ); + } $res->free(); + return $result; } @@ -189,8 +201,8 @@ class LocalRepo extends FSRepo { /** * Invalidates image redirect cache related to that image * - * @param Title $title Title of image - */ + * @param $title Title of page + */ function invalidateImageRedirect( $title ) { global $wgMemc; $memcKey = $this->getSharedCacheKey( 'image_redirect', md5( $title->getDBkey() ) ); -- cgit v1.2.2