From: Tim Starling Date: Sun, 13 Jun 2004 05:52:06 +0000 (+0000) Subject: fixed bug due to removal of whitespace in the middle of an SQL statement in quickEdit() X-Git-Tag: 1.5.0alpha1~2862 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=5888b30558e44156e1a3f6748a49539ecf18234f;p=lhc%2Fweb%2Fwiklou.git fixed bug due to removal of whitespace in the middle of an SQL statement in quickEdit() --- diff --git a/includes/Article.php b/includes/Article.php index 68d54856e4..6a0e4a5ae6 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1588,9 +1588,9 @@ class Article { # Save to history $oldtable=$wgIsPg?'"old"':'old'; - $sql = "INSERT INTO $oldtable (old_namespace,old_title,old_text,old_comment,old_user,old_user_text,old_timestamp,inverse_timestamp)" . - 'SELECT cur_namespace,cur_title,cur_text,cur_comment,cur_user,cur_user_text,cur_timestamp,99999999999999-cur_timestamp' . - "FROM cur WHERE cur_namespace=$ns AND cur_title='$encDbKey'"; + $sql = "INSERT INTO $oldtable (old_namespace,old_title,old_text,old_comment,old_user,old_user_text,old_timestamp,inverse_timestamp) + SELECT cur_namespace,cur_title,cur_text,cur_comment,cur_user,cur_user_text,cur_timestamp,99999999999999-cur_timestamp + FROM cur WHERE cur_namespace=$ns AND cur_title='$encDbKey'"; wfQuery( $sql, DB_WRITE ); # Use the affected row count to determine if the article is new