Index: trunk/extensions/Push/includes/Push_Tab.php |
— | — | @@ -423,7 +423,11 @@ |
424 | 424 | foreach ( $response['query']['pages'] as $page ) { |
425 | 425 | if ( array_key_exists( 'images', $page ) ) { |
426 | 426 | foreach ( $page['images'] as $image ) { |
427 | | - $images[] = $image['title']; |
| 427 | + $title = Title::newFromText( $image['title'], NS_FILE ); |
| 428 | + |
| 429 | + if ( !is_null( $title ) && $title->getNamespace() == NS_FILE && $title->exists() ) { |
| 430 | + $images[] = $image['title']; |
| 431 | + } |
428 | 432 | } |
429 | 433 | } |
430 | 434 | } |