summaryrefslogtreecommitdiffstats
path: root/wp-inst
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-11 17:02:32 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-08-11 17:02:32 +0000
commit40ca76944e876d6f8b1383f06d60daddf07ee4d8 (patch)
tree053f2a44b544d8a59cbdadd513b99bcea2b0ce3c /wp-inst
parent36840d8f892bd1be5f070cf7e058eac68c88a816 (diff)
downloadwordpress-mu-40ca76944e876d6f8b1383f06d60daddf07ee4d8.tar.gz
wordpress-mu-40ca76944e876d6f8b1383f06d60daddf07ee4d8.tar.xz
wordpress-mu-40ca76944e876d6f8b1383f06d60daddf07ee4d8.zip
Make file size site-configurable.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@166 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst')
-rw-r--r--wp-inst/wp-admin/upload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-inst/wp-admin/upload.php b/wp-inst/wp-admin/upload.php
index d1f02ec..c4bdab3 100644
--- a/wp-inst/wp-admin/upload.php
+++ b/wp-inst/wp-admin/upload.php
@@ -41,12 +41,12 @@ case '':
}
$i = implode(', ', $type_tags);
?>
-<p><?php printf(__('You can upload files with the extension %1$s as long as they are no larger than %2$s <abbr title="Kilobytes">KB</abbr>. If you&#8217;re an admin you can configure these values under <a href="%3$s">options</a>.'), $i, get_settings('fileupload_maxk'), 'options-misc.php') ?></p>
+<p><?php printf(__('You can upload files with the extension %1$s as long as they are no larger than %2$s <abbr title="Kilobytes">KB</abbr>. If you&#8217;re an admin you can configure these values under <a href="%3$s">options</a>.'), $i, get_site_option('fileupload_maxk', 300), 'options-misc.php') ?></p>
<form action="upload.php" method="post" enctype="multipart/form-data">
<p>
<label for="img1"><?php _e('File:') ?></label>
<br />
- <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_settings('fileupload_maxk') * 1024 ?>" />
+ <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo get_site_option('fileupload_maxk', 300 ) * 1024 ?>" />
<input type="file" name="img1" id="img1" size="35" class="uploadform" /></p>
<p>
<label for="imgdesc"><?php _e('Description:') ?></label><br />