Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php |
— | — | @@ -252,7 +252,8 @@ |
253 | 253 | // Set file path |
254 | 254 | $dir = dirname($filePath); |
255 | 255 | // Make sure directory exists |
256 | | - if( !is_dir($dir) && !wfMkdirParents( $dir, 0777 ) ) { |
| 256 | + if( !file_exists($dir) && !wfMkdirParents( $dir, 0777 ) ) { |
| 257 | + throw new MWException( 'Could not create file directory!' ); |
257 | 258 | return false; |
258 | 259 | } |
259 | 260 | $plot->SetOutputFile( $filePath ); |
— | — | @@ -339,6 +340,7 @@ |
340 | 341 | $dir = dirname($filePath); |
341 | 342 | // Make sure directory exists |
342 | 343 | if( !file_exists($dir) && !wfMkdirParents( $dir, 0777 ) ) { |
| 344 | + throw new MWException( 'Could not create file directory!' ); |
343 | 345 | return false; |
344 | 346 | } |
345 | 347 | // Set some parameters |