Index: trunk/phase3/includes/Math.php |
— | — | @@ -209,8 +209,14 @@ |
210 | 210 | $this->html = $rpage->math_html; |
211 | 211 | $this->mathml = $rpage->math_mathml; |
212 | 212 | |
213 | | - if( file_exists( $this->_getHashPath() . "/{$this->hash}.png" ) ) { |
214 | | - return true; |
| 213 | + $filename = $this->_getHashPath() . "/{$this->hash}.png"; |
| 214 | + if( file_exists( $filename ) ) { |
| 215 | + if( filesize( $filename ) == 0 ) { |
| 216 | + // Some horrible error corrupted stuff :( |
| 217 | + @unlink( $filename ); |
| 218 | + } else { |
| 219 | + return true; |
| 220 | + } |
215 | 221 | } |
216 | 222 | |
217 | 223 | if( file_exists( $wgMathDirectory . "/{$this->hash}.png" ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -366,6 +366,8 @@ |
367 | 367 | * (bug 7726) Searches for words less than 4 characters now work without |
368 | 368 | requiring customization of MySQL server settings |
369 | 369 | * Honour unchecked "Leave a redirect behind" for moved subpages |
| 370 | +* (bug 16440) Broken 0-byte math renderings are now deleted and re-rendered |
| 371 | + when page is re-parsed. |
370 | 372 | |
371 | 373 | === API changes in 1.14 === |
372 | 374 | |