Index: trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php |
— | — | @@ -112,7 +112,12 @@ |
113 | 113 | * @param User $user |
114 | 114 | * @return bool |
115 | 115 | */ |
116 | | - public function userCanExecute( User $user ) { |
| 116 | + // @TODO The "User" class was added to the function header |
| 117 | + // for SpecialPage::userCanExecute in MW 1.19 (r86407) - somehow |
| 118 | + // both the old and new signatures need to be supported. For now, |
| 119 | + // though, support only the old signature, since that's used by |
| 120 | + // the vast majority of users. |
| 121 | + public function userCanExecute( $user ) { |
117 | 122 | return UploadBase::isEnabled() && parent::userCanExecute( $user ); |
118 | 123 | } |
119 | 124 | |