Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -1008,7 +1008,9 @@ |
1009 | 1009 | Threads::CHANGE_NEW_THREAD => "New thread created:"); |
1010 | 1010 | $url = LqtView::permalinkUrlWithQuery( $this->thread, 'lqt_oldid=' . $t->revisionNumber() ); |
1011 | 1011 | |
1012 | | - $p = new Parser(); $sig = $wgOut->parse( $p->getUserSig( $t->changeUser() ), false ); |
| 1012 | + var_dump($t); |
| 1013 | + //$p = new Parser(); $sig = $wgOut->parse( $p->getUserSig( $t->changeUser() ), false ); |
| 1014 | + $sig = "foo"; |
1013 | 1015 | |
1014 | 1016 | $result[] = "<tr>"; |
1015 | 1017 | $result[] = "<td><a href=\"$url\">" . $wgLang->timeanddate($t->timestamp()) . "</a></td>"; |
Index: branches/liquidthreads/extensions/LqtModel.php |
— | — | @@ -633,6 +633,9 @@ |
634 | 634 | |
635 | 635 | static function newThread( $root, $article, $superthread = null, $type = self::TYPE_NORMAL ) { |
636 | 636 | |
| 637 | + // SCHEMA changes must be reflected here. |
| 638 | + // TODO: It's dumb that the commitRevision code isn't used here. |
| 639 | + |
637 | 640 | $dbr =& wfGetDB( DB_MASTER ); |
638 | 641 | |
639 | 642 | if ( !in_array($type, self::$VALID_TYPES) ) { |
— | — | @@ -651,11 +654,16 @@ |
652 | 655 | } else { |
653 | 656 | $change_type = self::CHANGE_NEW_THREAD; |
654 | 657 | } |
| 658 | + |
| 659 | + global $wgUser; // TODO global. |
655 | 660 | |
656 | 661 | $res = $dbr->insert('thread', |
657 | 662 | array('thread_root' => $root->getID(), |
658 | 663 | 'thread_timestamp' => wfTimestampNow(), |
659 | 664 | 'thread_change_type' => $change_type, |
| 665 | + 'thread_change_comment' => "", // TODO |
| 666 | + 'thread_change_user' => $wgUser->getID(), |
| 667 | + 'thread_change_user_text' => $wgUser->getName(), |
660 | 668 | 'thread_type' => $type) + $aclause, |
661 | 669 | __METHOD__); |
662 | 670 | |