* @access private
*/
function processUpload(){
- global $wgUser, $wgOut, $wgFileExtensions, $wgLang;
+ global $wgOut, $wgFileExtensions, $wgLang;
$details = null;
$value = null;
$value = $this->internalProcessUpload( $details );
);
if( $this->mForReUpload ) {
$wgOut->addHTML(
- "<input tabindex='2' type='hidden' name='wpDestFile' id='wpDestFile'
- value='{$encDestName}' />" .
+ Xml::hidden( 'wpDestFile', $this->mDesiredDestName, array('id'=>'wpDestFile','tabindex'=>2) ) .
"<tt>" .
$encDestName .
"</tt>"
else {
$wgOut->addHTML(
"<input tabindex='2' type='text' name='wpDestFile' id='wpDestFile' size='60'
- value='{$encDestName}' onchange='toggleFilenameFiller()' $destOnkeyup />"
+ value=\"{$encDestName}\" onchange='toggleFilenameFiller()' $destOnkeyup />"
);
}
<tr>
<td></td>
<td class='mw-input'>
- <input tabindex='9' type='submit' name='wpUpload' value=\"{$ulb}\"" . $wgUser->getSkin()->tooltipAndAccesskey( 'upload' ) . " />
+ <input tabindex='9' type='submit' name='wpUpload' value=\"{$ulb}\"" .
+ $wgUser->getSkin()->tooltipAndAccesskey( 'upload' ) . " />
</td>
</tr>
<tr>