|
@@ 157-161 (lines=5) @@
|
| 154 |
|
$this->mFileExists[$p['title']] = ( $p['imagerepository'] !== '' ); |
| 155 |
|
} |
| 156 |
|
# Second, copy the results to any redirects that were queried |
| 157 |
|
if ( isset( $data['query']['redirects'] ) ) { |
| 158 |
|
foreach ( $data['query']['redirects'] as $r ) { |
| 159 |
|
$this->mFileExists[$r['from']] = $this->mFileExists[$r['to']]; |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
# Third, copy the results to any non-normalized titles that were queried |
| 163 |
|
if ( isset( $data['query']['normalized'] ) ) { |
| 164 |
|
foreach ( $data['query']['normalized'] as $n ) { |
|
@@ 163-167 (lines=5) @@
|
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
# Third, copy the results to any non-normalized titles that were queried |
| 163 |
|
if ( isset( $data['query']['normalized'] ) ) { |
| 164 |
|
foreach ( $data['query']['normalized'] as $n ) { |
| 165 |
|
$this->mFileExists[$n['from']] = $this->mFileExists[$n['to']]; |
| 166 |
|
} |
| 167 |
|
} |
| 168 |
|
# Finally, copy the results to the output |
| 169 |
|
foreach ( $files as $key => $file ) { |
| 170 |
|
$results[$key] = $this->mFileExists[$file]; |