Index: trunk/phase3/includes/Linker.php |
— | — | @@ -1639,7 +1639,12 @@ |
1640 | 1640 | } else { |
1641 | 1641 | $protected = ''; |
1642 | 1642 | } |
1643 | | - $outText .= '<li>' . $sk->link( $titleObj ) . ' ' . $protected . '</li>'; |
| 1643 | + if( $titleObj->quickUserCan( 'edit' ) ) { |
| 1644 | + $editLink = $sk->makeLinkObj( $titleObj, wfMsg('editold'), 'action=edit' ); |
| 1645 | + } else { |
| 1646 | + $editLink = $sk->makeLinkObj( $titleObj, wfMsg('viewsourceold'), 'action=edit' ); |
| 1647 | + } |
| 1648 | + $outText .= '<li>' . $sk->link( $titleObj ) . ' (' . $editLink . ') ' . $protected . '</li>'; |
1644 | 1649 | } |
1645 | 1650 | $outText .= '</ul>'; |
1646 | 1651 | } |