Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -669,17 +669,12 @@ |
670 | 670 | } |
671 | 671 | |
672 | 672 | static function parserInjectImageTimestamps( &$parser, &$text ) { |
673 | | - $images = array(); |
674 | 673 | $parser->mOutput->mImageTimestamps = array(); |
675 | 674 | # Fetch the timestamps of the images |
676 | 675 | if( !empty($parser->mOutput->mImages) ) { |
677 | 676 | $dbr = wfGetDB( DB_SLAVE ); |
678 | | - foreach( $parser->mOutput->mImages as $name => $v ) { |
679 | | - $safename = $dbr->strencode( $name ); |
680 | | - $images[] = "'$safename'"; |
681 | | - } |
682 | 677 | $res = $dbr->select('image', array('img_name','img_timestamp'), |
683 | | - array('img_name IN(' . implode(',',$images) . ')'), |
| 678 | + array('img_name IN(' . $dbr->makeList( array_keys($parser->mOutput->mImages) ) . ')'), |
684 | 679 | __METHOD__ ); |
685 | 680 | |
686 | 681 | while( $row = $dbr->fetchObject($res) ) { |