Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -460,7 +460,7 @@ |
461 | 461 | } |
462 | 462 | |
463 | 463 | var titles = ''; |
464 | | - var imageList = currentTypeOrSubtype.gallery.imageList; |
| 464 | + var imageList = currentTypeOrSubtype.gallery.imageList.slice( 0 ); |
465 | 465 | for( var i=0; i<currentTypeOrSubtype.gallery.number; i++ ) { |
466 | 466 | // get a randomimage |
467 | 467 | var id = Math.floor( Math.random() * imageList.length ); |