From 5888b30558e44156e1a3f6748a49539ecf18234f Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 13 Jun 2004 05:52:06 +0000 Subject: [PATCH] fixed bug due to removal of whitespace in the middle of an SQL statement in quickEdit() --- includes/Article.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1