r48995 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48994‎ | r48995 | r48996 >
Date:12:08, 29 March 2009
Author:aaron
Status:ok
Tags:
Comment:
Moved @ modifier for write-errors
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php
@@ -468,7 +468,7 @@
469469 // Write to file for cache
470470 $svgPath = $this->getFilePath( $tag, 'svg' );
471471 $svgHandler = new SvgHandler();
472 - if( !@file_put_contents( $svgPath, $plot->svg ) ) {
 472+ if( @!file_put_contents( $svgPath, $plot->svg ) ) {
473473 throw new MWException( 'Could not write SVG file!' );
474474 return false;
475475 }

Status & tagging log