Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -334,9 +334,10 @@ |
335 | 335 | 'user' => $rc->mAttribs['rc_user'], |
336 | 336 | 'user_text' => $rc->mAttribs['rc_user_text'] |
337 | 337 | ) ); |
| 338 | + $rev->setTitle( $page ); |
338 | 339 | $s .= ' '.$this->skin->generateRollback( $rev ); |
339 | 340 | } |
340 | | - } |
| 341 | + } |
341 | 342 | } |
342 | 343 | |
343 | 344 | protected function insertTags( &$s, &$rc, &$classes ) { |
— | — | @@ -467,8 +468,9 @@ |
468 | 469 | * Format a line for enhanced recentchange (aka with javascript and block of lines). |
469 | 470 | */ |
470 | 471 | public function recentChangesLine( &$baseRC, $watched = false ) { |
471 | | - |
472 | 472 | global $wgLang, $wgContLang, $wgUser; |
| 473 | + |
| 474 | + wfProfileIn( __METHOD__ ); |
473 | 475 | |
474 | 476 | # Create a specialised object |
475 | 477 | $rc = RCCacheEntry::newFromParent( $baseRC ); |
— | — | @@ -608,6 +610,9 @@ |
609 | 611 | |
610 | 612 | array_push( $this->rc_cache[$secureName], $rc ); |
611 | 613 | } |
| 614 | + |
| 615 | + wfProfileOut( __METHOD__ ); |
| 616 | + |
612 | 617 | return $ret; |
613 | 618 | } |
614 | 619 | |
— | — | @@ -616,6 +621,9 @@ |
617 | 622 | */ |
618 | 623 | protected function recentChangesBlockGroup( $block ) { |
619 | 624 | global $wgLang, $wgContLang, $wgRCShowChangedSize; |
| 625 | + |
| 626 | + wfProfileIn( __METHOD__ ); |
| 627 | + |
620 | 628 | $r = '<table cellpadding="0" cellspacing="0" border="0" style="background: none"><tr>'; |
621 | 629 | |
622 | 630 | # Collate list of users |
— | — | @@ -836,6 +844,9 @@ |
837 | 845 | $r .= "</table></div>\n"; |
838 | 846 | |
839 | 847 | $this->rcCacheIndex++; |
| 848 | + |
| 849 | + wfProfileOut( __METHOD__ ); |
| 850 | + |
840 | 851 | return $r; |
841 | 852 | } |
842 | 853 | |
— | — | @@ -896,6 +907,9 @@ |
897 | 908 | */ |
898 | 909 | protected function recentChangesBlockLine( $rcObj ) { |
899 | 910 | global $wgContLang, $wgRCShowChangedSize; |
| 911 | + |
| 912 | + wfProfileIn( __METHOD__ ); |
| 913 | + |
900 | 914 | # Extract fields from DB into the function scope (rc_xxxx variables) |
901 | 915 | // FIXME: Would be good to replace this extract() call with something |
902 | 916 | // that explicitly initializes variables. |
— | — | @@ -950,6 +964,9 @@ |
951 | 965 | $r .= $this->numberofWatchingusers($rcObj->numberofWatchingusers); |
952 | 966 | |
953 | 967 | $r .= "</td></tr></table>\n"; |
| 968 | + |
| 969 | + wfProfileOut( __METHOD__ ); |
| 970 | + |
954 | 971 | return $r; |
955 | 972 | } |
956 | 973 | |
— | — | @@ -961,6 +978,9 @@ |
962 | 979 | if( count ( $this->rc_cache ) == 0 ) { |
963 | 980 | return ''; |
964 | 981 | } |
| 982 | + |
| 983 | + wfProfileIn( __METHOD__ ); |
| 984 | + |
965 | 985 | $blockOut = ''; |
966 | 986 | foreach( $this->rc_cache as $block ) { |
967 | 987 | if( count( $block ) < 2 ) { |
— | — | @@ -969,6 +989,9 @@ |
970 | 990 | $blockOut .= $this->recentChangesBlockGroup( $block ); |
971 | 991 | } |
972 | 992 | } |
| 993 | + |
| 994 | + wfProfileOut( __METHOD__ ); |
| 995 | + |
973 | 996 | return '<div>'.$blockOut.'</div>'; |
974 | 997 | } |
975 | 998 | |