From ca3ee3e3a1fe98dc15e4e511df0995357214ef64 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Tue, 27 Apr 2004 05:44:55 +0000 Subject: [PATCH] "REPLACE" is a "DB_WRITE" action --- includes/Math.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Math.php b/includes/Math.php index c487eb7fef..cbe2cc09be 100644 --- a/includes/Math.php +++ b/includes/Math.php @@ -130,7 +130,7 @@ class MathRenderer { $md5_sql = wfStrencode( pack("H32", $this->md5) ); # Binary packed, not hex $sql = "REPLACE INTO math VALUES ('".$md5_sql."', '".$outmd5_sql."', ".$this->conservativeness.", ".$sql_html.", ".$sql_mathml.")"; - $res = wfQuery( $sql, DB_READ, "MathRenderer::render" ); + $res = wfQuery( $sql, DB_WRITE, "MathRenderer::render" ); # we don't really care if it fails } -- 2.20.1