From: Jens Frank Date: Tue, 27 Apr 2004 05:44:55 +0000 (+0000) Subject: "REPLACE" is a "DB_WRITE" action X-Git-Tag: 1.3.0beta1~258 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/%22%24ccApp/ecrire?a=commitdiff_plain;h=ca3ee3e3a1fe98dc15e4e511df0995357214ef64;p=lhc%2Fweb%2Fwiklou.git "REPLACE" is a "DB_WRITE" action --- 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 }