mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-30 18:35:12 +00:00
Update the DB output hash if outdated according to texvc
* Otherwise all future <math> hits will check the wrong file (which may not exist), recreate the png, and store over the proper file (even if it was already there). Update the DB to point to the right hash instead. bug: 60997 Change-Id: Ib833ad32ff1e4506e9b8ab2cc1b72516cb072cd5
This commit is contained in:
parent
8e10cffd43
commit
078347b35e
|
@ -193,7 +193,11 @@ class MathTexvc extends MathRenderer {
|
|||
}
|
||||
|
||||
if ( !$errmsg ) {
|
||||
$this->setHash( substr( $contents, 1, 32 ) );
|
||||
$newHash = substr( $contents, 1, 32 );
|
||||
if ( $this->hash !== $newHash ) {
|
||||
$this->recall = false; // DB needs update in writeCache() (bug 60997)
|
||||
}
|
||||
$this->setHash( $newHash );
|
||||
}
|
||||
|
||||
wfRunHooks( 'MathAfterTexvc', array( &$this, &$errmsg ) );
|
||||
|
|
Loading…
Reference in a new issue