Index: trunk/extensions/SpecialUploadLocal/SpecialUploadLocal.php |
— | — | @@ -26,9 +26,7 @@ |
27 | 27 | $wgSpecialPages['SpecialUploadLocal'] = 'SpecialUploadLocal'; |
28 | 28 | $wgExtensionMessagesFiles['SpecialUploadLocal'] = dirname( __FILE__ ) . '/SpecialUploadLocal.i18n.php'; |
29 | 29 | $wgAutoloadClasses[ 'SpecialUploadLocal' ] = dirname( __FILE__ ) . '/SpecialUploadLocal_body.php'; |
30 | | -/** (CSN) 27 Oct 2011 - Need to add new class for 1.17.0 */ |
31 | 30 | $wgAutoloadClasses[ 'WebRequestUploadLocal' ] = dirname( __FILE__ ) . '/WebRequestUploadLocal.php'; |
32 | | -/* (CSN) end mod **/ |
33 | 31 | |
34 | 32 | $wgUploadLocalDirectory = $IP . '/extensions/SpecialUploadLocal/data'; |
35 | 33 | |
Index: trunk/extensions/SpecialUploadLocal/UploadLocalForm.php |
— | — | @@ -21,16 +21,13 @@ |
22 | 22 | $name = $dir . $filename; |
23 | 23 | |
24 | 24 | $this->upload = new UploadFromFile(); |
25 | | -/** (CSN) 27 Oct 2011 - For 1.17.0, we need a request object */ |
26 | 25 | $fileInfo = array( |
27 | 26 | 'name' => $dest, |
28 | 27 | 'size' => filesize( $name ), |
29 | 28 | 'tmp_name' => $name, |
30 | 29 | 'error' => 0 |
31 | 30 | ); |
32 | | - //$this->upload->initialize( $dest, $name, filesize( $name ) ); |
33 | 31 | $this->upload->initialize( $name, new WebRequestUploadLocal( true, $fileInfo ) ); |
34 | | -/* (CSN) end mod **/ |
35 | 32 | } |
36 | 33 | |
37 | 34 | function processUpload( $user ) { |