Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -539,7 +539,7 @@ |
540 | 540 | $yourtext = $obj->cur_text; |
541 | 541 | $ns = $this->mTitle->getNamespace(); |
542 | 542 | $title = wfStrencode( $this->mTitle->getDBkey() ); |
543 | | - $res = wfQuery("SELECT old_text FROM old WHERE old_namespace = $ns AND ". |
| 543 | + $res = wfQuery("SELECT old_text,old_flags FROM old WHERE old_namespace = $ns AND ". |
544 | 544 | "old_title = '{$title}' AND old_timestamp = '{$oldDate}'", DB_WRITE); |
545 | 545 | $obj = wfFetchObject($res); |
546 | 546 | $oldText = Article::getRevisionText( $obj ); |