Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php |
— | — | @@ -211,10 +211,13 @@ |
212 | 212 | } |
213 | 213 | $localUrl = $wgServer . $wgUploadPath . '/' . $path . $fileName; |
214 | 214 | # FIXME: Delete old thumbs that aren't being used. Maintenance script? |
| 215 | + wfSuppressWarnings(); |
215 | 216 | if( !file_put_contents($wgUploadDirectory . '/' . $path . $fileName, $thumb ) ) { |
| 217 | + wfRestoreWarnings(); |
216 | 218 | wfDebug( __METHOD__ . " could not write to thumb path\n" ); |
217 | 219 | return $foreignUrl; |
218 | 220 | } |
| 221 | + wfRestoreWarnings(); |
219 | 222 | $wgMemc->set( $key, $localUrl, $this->apiThumbCacheExpiry ); |
220 | 223 | wfDebug( __METHOD__ . " got local thumb $localUrl, saving to cache \n" ); |
221 | 224 | return $localUrl; |