Index: trunk/extensions/FlaggedRevs/specialpages/RatingHistory_body.php |
— | — | @@ -160,11 +160,11 @@ |
161 | 161 | Xml::closeElement( 'div' ) . "\n"; |
162 | 162 | } |
163 | 163 | break; |
164 | | - default: |
| 164 | + default: // use html table |
165 | 165 | if( $exists ) { |
166 | | - $fp = @fopen( $filePath, 'r' ); |
| 166 | + $fp = fopen( $filePath, 'r' ); |
167 | 167 | $table = fread( $fp, filesize($filePath) ); |
168 | | - @fclose( $fp ); |
| 168 | + fclose( $fp ); |
169 | 169 | $html .= '<h2>' . wfMsgHtml("readerfeedback-$tag") . '</h2>' . $table . "\n"; |
170 | 170 | } else if( $table = $this->makeHTMLTable( $tag, $filePath ) ) { |
171 | 171 | $html .= '<h2>' . wfMsgHtml("readerfeedback-$tag") . '</h2>' . $table . "\n"; |
— | — | @@ -237,9 +237,9 @@ |
238 | 238 | $chart .= "</table>\n"; |
239 | 239 | $chart .= Xml::closeElement( 'div' ); |
240 | 240 | // Write to file for cache |
241 | | - $fp = @fopen( $filePath, 'w' ); |
242 | | - @fwrite( $fp, $chart ); |
243 | | - @fclose( $fp ); |
| 241 | + $fp = fopen( $filePath, 'w' ); |
| 242 | + fwrite( $fp, $chart ); |
| 243 | + fclose( $fp ); |
244 | 244 | return $chart; |
245 | 245 | } |
246 | 246 | |