From: Erik Moeller Date: Wed, 23 Mar 2005 23:14:09 +0000 (+0000) Subject: use intval for column X-Git-Tag: 1.5.0alpha1~545 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=6fc1f7d6a64416e38a76c66367a997ac52e41941;p=lhc%2Fweb%2Fwiklou.git use intval for column fix $ew --- diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index 1c2047440b..98d14cf0c9 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -497,8 +497,10 @@ class UploadForm { global $wgOut, $wgUser, $wgLang, $wgUploadDirectory, $wgRequest; global $wgUseCopyrightUpload; - $cols = $wgUser->getOption( 'cols' ); + $cols = intval($wgUser->getOption( 'cols' )); $ew = $wgUser->getOption( 'editwidth' ); + if ( $ew ) $ew = " style=\"width:100%\""; + else $ew = ''; if ( '' != $msg ) { $sub = wfMsg( 'uploaderror' );