Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -14,6 +14,7 @@ |
15 | 15 | |
16 | 16 | require_once('LqtModel.php'); |
17 | 17 | require_once('Pager.php'); |
| 18 | +require_once('PageHistory.php'); |
18 | 19 | |
19 | 20 | class LqtDispatch { |
20 | 21 | static function talkpageMain(&$output, &$talk_article, &$title, &$user, &$request) { |
— | — | @@ -866,12 +867,12 @@ |
867 | 868 | /** |
868 | 869 | * @addtogroup Pager |
869 | 870 | */ |
870 | | -class ThreadHistoryPager extends ReverseChronologicalPager { |
871 | | - public $mLastRow = false; |
| 871 | +class ThreadHistoryPager extends PageHistoryPager { |
872 | 872 | protected $thread; |
873 | 873 | |
874 | 874 | function __construct( $thread ) { |
875 | | - parent::__construct(); |
| 875 | + // mPageHistory = this in the PageHistoryPager methods now. |
| 876 | + parent::__construct($this); |
876 | 877 | $this->thread = $thread; |
877 | 878 | } |
878 | 879 | |
— | — | @@ -887,11 +888,27 @@ |
888 | 889 | function getIndexField() { |
889 | 890 | return 'hthread_revision'; |
890 | 891 | } |
891 | | - |
| 892 | + |
| 893 | + /** |
| 894 | + * Returns a row from the history printout. |
| 895 | + * |
| 896 | + * @param object $row The database row corresponding to the line (or is it the previous line?). |
| 897 | + * @param object $next The database row corresponding to the next line (or is it this one?). |
| 898 | + * @param int $counter Apparently a counter of what row number we're at, counted from the top row = 1. |
| 899 | + * @param $notificationtimestamp |
| 900 | + * @param bool $latest Whether this row corresponds to the page's latest revision. |
| 901 | + * @param bool $firstInList Whether this row corresponds to the first displayed on this history page. |
| 902 | + * @return string HTML output for the row |
| 903 | + */ |
| 904 | + function historyLine( $row, $next, $counter = '', $notificationtimestamp = false, $latest = false, $firstInList = false ) { |
| 905 | + |
| 906 | + } |
| 907 | + |
| 908 | +/* |
892 | 909 | function formatRow( $row ) { |
893 | 910 | return '<li>' . $row->hthread_revision; |
894 | 911 | } |
895 | | - |
| 912 | +*/ |
896 | 913 | function getStartBody() { |
897 | 914 | $this->mLastRow = false; |
898 | 915 | $this->mCounter = 1; |