Index: trunk/extensions/UploadWizard/resources/mw.FlickrChecker.js |
— | — | @@ -33,9 +33,9 @@ |
34 | 34 | * @param upload - the upload object to set the deed for |
35 | 35 | */ |
36 | 36 | checkFlickr: function( url, $selector, upload ) { |
37 | | - photoIdMatches = url.match(/flickr.com\/photos\/[^\/]+\/([0-9]+)/); |
| 37 | + var photoIdMatches = url.match(/flickr.com\/photos\/[^\/]+\/([0-9]+)/); |
38 | 38 | if ( photoIdMatches && photoIdMatches[1] > 0 ) { |
39 | | - photoId = photoIdMatches[1]; |
| 39 | + var photoId = photoIdMatches[1]; |
40 | 40 | $.getJSON(this.apiUrl+'&method=flickr.photos.getInfo&api_key='+this.apiKey+'&photo_id='+photoId+'&format=json&jsoncallback=?', |
41 | 41 | function( data ) { |
42 | 42 | if ( typeof data.photo != 'undefined' ) { |