From 1f0d5500b21ebc2457ad2f1f58e65a5b77793224 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 29 May 2004 17:14:47 +0000 Subject: [PATCH] bug fix --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 4ebf6e7009..808a52d777 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -539,7 +539,7 @@ htmlspecialchars( $wgLang->recodeForEdit( $this->textbox1 ) ) . $yourtext = $obj->cur_text; $ns = $this->mTitle->getNamespace(); $title = wfStrencode( $this->mTitle->getDBkey() ); - $res = wfQuery("SELECT old_text FROM old WHERE old_namespace = $ns AND ". + $res = wfQuery("SELECT old_text,old_flags FROM old WHERE old_namespace = $ns AND ". "old_title = '{$title}' AND old_timestamp = '{$oldDate}'", DB_WRITE); $obj = wfFetchObject($res); $oldText = Article::getRevisionText( $obj ); -- 2.20.1