http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89002

Revision: 89002
Author:   yaron
Date:     2011-05-27 22:23:53 +0000 (Fri, 27 May 2011)
Log Message:
-----------
Undoing r86505 - unfortunately, it's beyond my PHP abilities to support both 
the old and the new signatures for the userCanExecute() method; so until that's 
done, I prefer to support the "old" (i.e., pre-MW 1.19) version

Modified Paths:
--------------
    trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php

Modified: trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php
===================================================================
--- trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php        
2011-05-27 22:09:22 UTC (rev 89001)
+++ trunk/extensions/SemanticForms/specials/SF_UploadWindow2.php        
2011-05-27 22:23:53 UTC (rev 89002)
@@ -112,7 +112,12 @@
         * @param User $user
         * @return bool
         */
-       public function userCanExecute( User $user ) {
+       // @TODO The "User" class was added to the function header
+       // for SpecialPage::userCanExecute in MW 1.19 (r86407) - somehow
+       // both the old and new signatures need to be supported. For now,
+       // though, support only the old signature, since that's used by
+       // the vast majority of users.
+       public function userCanExecute( $user ) {
                return UploadBase::isEnabled() && parent::userCanExecute( $user 
);
        }
 


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to