r41376 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41375‎ | r41376 | r41377 >
Date:10:02, 29 September 2008
Author:eloy
Status:old
Tags:
Comment:
after this fix user can define wgMaxUploadFiles value in LocalSettings.php
Modified paths:
  • /trunk/extensions/MultiUpload/SpecialMultipleUpload.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MultiUpload/SpecialMultipleUpload.php
@@ -14,7 +14,7 @@
1515 */
1616
1717 // change this parameter to limit the # of files one can upload
18 -$wgMaxUploadFiles = 5;
 18+$wgMaxUploadFiles = isset( $wgMaxUploadFiles ) ? $wgMaxUploadFiles : 5;
1919
2020 $wgExtensionFunctions[] = 'wfMultipleUpload';
2121

Status & tagging log