Index: branches/liquidthreads/maintenance/lqt.sql |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | -- of the live thread. It is only the id/revision combo which must be unique. |
28 | 28 | hthread_id int(8) unsigned NOT NULL, |
29 | 29 | hthread_revision int(8) unsigned NOT NULL, |
30 | | - hthread_contents TEXT NOT NULL, |
| 30 | + hthread_contents BLOB NOT NULL, |
31 | 31 | PRIMARY KEY hthread_id_revision (hthread_id, hthread_revision) |
32 | 32 | ) TYPE=InnoDB; |
33 | 33 | |
Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -256,7 +256,7 @@ |
257 | 257 | //$this->renameThread($thread, $subject); |
258 | 258 | } |
259 | 259 | // this is unrelated to the subject change and is for all edits: |
260 | | -// $thread->setRootRevision( ); |
| 260 | + $thread->setRootRevision( Revision::newFromTitle($thread->root()->getTitle()) ); |
261 | 261 | $thread->commitRevision(); |
262 | 262 | } |
263 | 263 | |
— | — | @@ -610,7 +610,7 @@ |
611 | 611 | |
612 | 612 | $this->showArchiveWidget(); |
613 | 613 | |
614 | | - var_dump(HistoricalThread::withIdAtRevision(3,3)); |
| 614 | + var_dump(HistoricalThread::withIdAtRevision(3,5)); |
615 | 615 | |
616 | 616 | if( $this->methodApplies('talkpage_new_thread') ) { |
617 | 617 | $this->showNewThreadForm(); |
Index: branches/liquidthreads/extensions/LqtModel.php |
— | — | @@ -254,6 +254,14 @@ |
255 | 255 | return $this->root; |
256 | 256 | } |
257 | 257 | |
| 258 | + function setRootRevision($rr) { |
| 259 | + if( (is_object($rr)) ) { |
| 260 | + $this->rootRevision = $rr->getId(); |
| 261 | + } else if (is_int($rr)) { |
| 262 | + $this->rootRevision = $rr; |
| 263 | + } |
| 264 | + } |
| 265 | + |
258 | 266 | function summary() { |
259 | 267 | if ( !$this->summaryId ) return null; |
260 | 268 | if ( !$this->summary ) $this->summary = new Post( Title::newFromID( $this->summaryId ) ); |