Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2841,9 +2841,10 @@ |
2842 | 2842 | } |
2843 | 2843 | |
2844 | 2844 | # Universal edit button |
2845 | | - if ( $wgUniversalEditButton ) { |
2846 | | - if ( $this->isArticleRelated() && $this->getTitle() && $this->getTitle()->quickUserCan( 'edit' ) |
2847 | | - && ( $this->getTitle()->exists() || $this->getTitle()->quickUserCan( 'create' ) ) ) { |
| 2845 | + if ( $wgUniversalEditButton && $this->isArticleRelated() ) { |
| 2846 | + $user = $this->getUser(); |
| 2847 | + if ( $this->getTitle()->quickUserCan( 'edit', $user ) |
| 2848 | + && ( $this->getTitle()->exists() || $this->getTitle()->quickUserCan( 'create', $user ) ) ) { |
2848 | 2849 | // Original UniversalEditButton |
2849 | 2850 | $msg = $this->msg( 'edit' )->text(); |
2850 | 2851 | $tags[] = Html::element( 'link', array( |