* (bug 7726) Searches for words less than 4 characters now work without
requiring customization of MySQL server settings
* Honour unchecked "Leave a redirect behind" for moved subpages
+* (bug 16440) Broken 0-byte math renderings are now deleted and re-rendered
+ when page is re-parsed.
=== API changes in 1.14 ===
$this->html = $rpage->math_html;
$this->mathml = $rpage->math_mathml;
- if( file_exists( $this->_getHashPath() . "/{$this->hash}.png" ) ) {
- return true;
+ $filename = $this->_getHashPath() . "/{$this->hash}.png";
+ if( file_exists( $filename ) ) {
+ if( filesize( $filename ) == 0 ) {
+ // Some horrible error corrupted stuff :(
+ @unlink( $filename );
+ } else {
+ return true;
+ }
}
if( file_exists( $wgMathDirectory . "/{$this->hash}.png" ) ) {