function processUpload() { global $wgMaxUploadFiles, $wgOut; parent::processUpload(); $wgOut->redirect(''); // clear the redirect }
/** * Really do the upload * Checks are made in SpecialUpload::execute() * @access private */ function processUpload() { global $wgMaxUploadFiles, $wgOut; $wgOut->addHTML("<table>"); $this->mShowUploadForm = false; for ($x = 0; $x < $wgMaxUploadFiles; $x++) { $this->mFileIndex = $x; if (!isset($this->mUploadTempNameArray[$x]) || $this->mUploadTempNameArray[$x] == null) { continue; } $this->mTempPath = $this->mUploadTempName = $this->mUploadTempNameArray[$x]; $this->mFileSize = $this->mUploadSize = $this->mUploadSizeArray[$x]; $this->mSrcName = $this->mOname = $this->mOnameArray[$x]; $this->mUploadError = $this->mUploadErrorArray[$x]; $this->mDesiredDestName = $this->mDestFileArray[$x]; $this->mUploadDescription = $this->mUploadDescriptionArray[$x]; $this->mComment = $this->mUploadDescriptionArray[$x]; $this->mRemoveTempFile = true; $wgOut->addHTML("<tr><td>"); parent::processUpload(); $wgOut->addHTML("</td></tr>"); } $wgOut->addHTML("</table>"); $this->mShowUploadForm = false; $wgOut->redirect(''); // clear the redirect, we want to show a nice page of images $this->mShowUploadForm = true; if ($this->mHasWarning) { $this->showWarningOptions(); } }