Merge "Update the DB output hash if outdated according to texvc"

This commit is contained in:
jenkins-bot 2014-02-14 23:52:35 +00:00 committed by Gerrit Code Review
commit 7bd39100b2
1 changed files with 5 additions and 1 deletions

View File

@ -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 ) );