Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -582,7 +582,7 @@ |
583 | 583 | $curId = $currentRevision = 0; |
584 | 584 | # Some catalyst variables... |
585 | 585 | $namehidden = true; |
586 | | - $alllogs = true; |
| 586 | + $allLogs = true; |
587 | 587 | foreach( $block as $rcObj ) { |
588 | 588 | $oldid = $rcObj->mAttribs['rc_last_oldid']; |
589 | 589 | if( $rcObj->mAttribs['rc_new'] ) { |
— | — | @@ -601,7 +601,7 @@ |
602 | 602 | $unpatrolled = true; |
603 | 603 | } |
604 | 604 | if( $rcObj->mAttribs['rc_type'] != RC_LOG ) { |
605 | | - $alllogs = false; |
| 605 | + $allLogs = false; |
606 | 606 | } |
607 | 607 | # Get the latest entry with a page_id and oldid |
608 | 608 | # since logs may not have these. |
— | — | @@ -652,6 +652,8 @@ |
653 | 653 | # Article link |
654 | 654 | if( $namehidden ) { |
655 | 655 | $r .= ' <span class="history-deleted">' . wfMsgHtml('rev-deleted-event') . '</span>'; |
| 656 | + } else if( $allLogs ) { |
| 657 | + $r .= $this->maybeWatchedLink( $block[0]->link, $block[0]->watched ); |
656 | 658 | } else { |
657 | 659 | $this->insertArticleLink( $r, $block[0], $block[0]->unpatrolled, $block[0]->watched ); |
658 | 660 | } |
— | — | @@ -667,7 +669,7 @@ |
668 | 670 | } |
669 | 671 | # Total change link |
670 | 672 | $r .= ' '; |
671 | | - if( !$alllogs ) { |
| 673 | + if( !$allLogs ) { |
672 | 674 | $r .= '('; |
673 | 675 | if( !ChangesList::userCan($rcObj,Revision::DELETED_TEXT) ) { |
674 | 676 | $r .= $nchanges[$n]; |
— | — | @@ -680,7 +682,7 @@ |
681 | 683 | } |
682 | 684 | |
683 | 685 | # History |
684 | | - if( $alllogs ) { |
| 686 | + if( $allLogs ) { |
685 | 687 | // don't show history link for logs |
686 | 688 | } else if( $namehidden || !$block[0]->getTitle()->exists() ) { |
687 | 689 | $r .= $this->message['semicolon-separator'] . $this->message['hist'] . ')'; |
— | — | @@ -691,7 +693,7 @@ |
692 | 694 | $r .= ' . . '; |
693 | 695 | |
694 | 696 | # Character difference (does not apply if only log items) |
695 | | - if( $wgRCShowChangedSize && !$alllogs ) { |
| 697 | + if( $wgRCShowChangedSize && !$allLogs ) { |
696 | 698 | $last = 0; |
697 | 699 | $first = count($block) - 1; |
698 | 700 | # Some events (like logs) have an "empty" size, so we need to skip those... |