dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b6e946
)
Remove unused array index, add a couple of braces
author
Sam Reed
<reedy@users.mediawiki.org>
Tue, 12 Oct 2010 22:48:22 +0000
(22:48 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Tue, 12 Oct 2010 22:48:22 +0000
(22:48 +0000)
includes/filerepo/FileRepo.php
patch
|
blob
|
history
diff --git
a/includes/filerepo/FileRepo.php
b/includes/filerepo/FileRepo.php
index
c65b403
..
6fd7790
100644
(file)
--- a/
includes/filerepo/FileRepo.php
+++ b/
includes/filerepo/FileRepo.php
@@
-163,7
+163,7
@@
abstract class FileRepo {
*/
function findFiles( $items ) {
$result = array();
- foreach ( $items as $i
ndex => $i
tem ) {
+ foreach ( $items as $item ) {
if ( is_array( $item ) ) {
$title = $item['title'];
$options = $item;
@@
-173,8
+173,9
@@
abstract class FileRepo {
$options = array();
}
$file = $this->findFile( $title, $options );
- if ( $file )
+ if ( $file )
{
$result[$file->getTitle()->getDBkey()] = $file;
+ }
}
return $result;
}