From: Tim Starling Date: Sat, 29 May 2004 17:14:47 +0000 (+0000) Subject: bug fix X-Git-Tag: 1.5.0alpha1~3154 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=1f0d5500b21ebc2457ad2f1f58e65a5b77793224;p=lhc%2Fweb%2Fwiklou.git bug fix --- 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 );