bug fix
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 29 May 2004 17:14:47 +0000 (17:14 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 29 May 2004 17:14:47 +0000 (17:14 +0000)
includes/EditPage.php

index 4ebf6e7..808a52d 100644 (file)
@@ -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 );