Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -467,6 +467,7 @@ |
468 | 468 | * Format a line for enhanced recentchange (aka with javascript and block of lines). |
469 | 469 | */ |
470 | 470 | public function recentChangesLine( &$baseRC, $watched = false ) { |
| 471 | + |
471 | 472 | global $wgLang, $wgContLang, $wgUser; |
472 | 473 | |
473 | 474 | # Create a specialised object |
— | — | @@ -604,6 +605,7 @@ |
605 | 606 | if( !isset( $this->rc_cache[$secureName] ) ) { |
606 | 607 | $this->rc_cache[$secureName] = array(); |
607 | 608 | } |
| 609 | + |
608 | 610 | array_push( $this->rc_cache[$secureName], $rc ); |
609 | 611 | } |
610 | 612 | return $ret; |
— | — | @@ -769,6 +771,8 @@ |
770 | 772 | # Extract fields from DB into the function scope (rc_xxxx variables) |
771 | 773 | // FIXME: Would be good to replace this extract() call with something |
772 | 774 | // that explicitly initializes variables. |
| 775 | + # Classes to apply -- TODO implement |
| 776 | + $classes = array(); |
773 | 777 | extract( $rcObj->mAttribs ); |
774 | 778 | |
775 | 779 | #$r .= '<tr><td valign="top">'.$this->spacerArrow(); |
— | — | @@ -819,6 +823,9 @@ |
820 | 824 | $this->insertComment( $r, $rcObj ); |
821 | 825 | # Rollback |
822 | 826 | $this->insertRollback( $r, $rcObj ); |
| 827 | + # Tags |
| 828 | + $this->insertTags( $r, $rcObj, $classes ); |
| 829 | + |
823 | 830 | # Mark revision as deleted |
824 | 831 | if( !$rc_log_type && $this->isDeleted($rcObj,Revision::DELETED_TEXT) ) { |
825 | 832 | $r .= ' <tt>' . wfMsgHtml( 'deletedrev' ) . '</tt>'; |
— | — | @@ -892,6 +899,7 @@ |
893 | 900 | # Extract fields from DB into the function scope (rc_xxxx variables) |
894 | 901 | // FIXME: Would be good to replace this extract() call with something |
895 | 902 | // that explicitly initializes variables. |
| 903 | + $classes = array(); // TODO implement |
896 | 904 | extract( $rcObj->mAttribs ); |
897 | 905 | $curIdEq = "curid={$rc_cur_id}"; |
898 | 906 | |
— | — | @@ -936,6 +944,8 @@ |
937 | 945 | } |
938 | 946 | $this->insertComment( $r, $rcObj ); |
939 | 947 | $this->insertRollback( $r, $rcObj ); |
| 948 | + # Tags |
| 949 | + $this->insertTags( $r, $rcObj, $classes ); |
940 | 950 | # Show how many people are watching this if enabled |
941 | 951 | $r .= $this->numberofWatchingusers($rcObj->numberofWatchingusers); |
942 | 952 | |