http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70130
Revision: 70130
Author: btongminh
Date: 2010-07-29 09:32:25 +0000 (Thu, 29 Jul 2010)
Log Message:
-----------
Follow-up r60277: Do not return BEFORE_PROCESSING, but void instead.
Modified Paths:
--------------
trunk/phase3/includes/specials/SpecialUpload.php
Modified: trunk/phase3/includes/specials/SpecialUpload.php
===================================================================
--- trunk/phase3/includes/specials/SpecialUpload.php 2010-07-29 07:43:10 UTC
(rev 70129)
+++ trunk/phase3/includes/specials/SpecialUpload.php 2010-07-29 09:32:25 UTC
(rev 70130)
@@ -432,7 +432,10 @@
// Deprecated backwards compatibility hook
if( !wfRunHooks( 'UploadForm:BeforeProcessing', array( &$this )
) ) {
wfDebug( "Hook 'UploadForm:BeforeProcessing' broke
processing the file.\n" );
- return array( 'status' => UploadBase::BEFORE_PROCESSING
);
+ // Return without notifying the user of an error. This
sucks, but
+ // this was the previous behaviour as well, and as this
hook is
+ // deprecated we're not going to do anything about it.
+ return;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs