aboutsummaryrefslogtreecommitdiff
path: root/views/default/forms/photos/basic_upload.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-07-14 15:50:06 -0400
committerCash Costello <cash.costello@gmail.com>2012-07-14 15:50:06 -0400
commitc7bd5fb64003c42f9299b7203af9a13bcd48948f (patch)
treed962c172af9395c734d345aa43d95561ea3ccf24 /views/default/forms/photos/basic_upload.php
parent2d8b04169dda48a5dba8503d9943bdeee2c64685 (diff)
downloadelgg-c7bd5fb64003c42f9299b7203af9a13bcd48948f.tar.gz
elgg-c7bd5fb64003c42f9299b7203af9a13bcd48948f.tar.bz2
added quota back
Diffstat (limited to 'views/default/forms/photos/basic_upload.php')
-rw-r--r--views/default/forms/photos/basic_upload.php27
1 files changed, 0 insertions, 27 deletions
diff --git a/views/default/forms/photos/basic_upload.php b/views/default/forms/photos/basic_upload.php
index e4535814b..ba849d1b4 100644
--- a/views/default/forms/photos/basic_upload.php
+++ b/views/default/forms/photos/basic_upload.php
@@ -15,33 +15,6 @@ $album = $vars['entity'];
$access_id = $album->access_id;
$maxfilesize = (float) elgg_get_plugin_setting('maxfilesize', 'tidypics');
-$quota = elgg_get_plugin_setting('quota', 'tidypics');
-/*
-if ($quota) {
- $image_repo_size_md = get_metadata_byname($album->container_guid, "image_repo_size");
- $image_repo_size = (int)$image_repo_size_md->value;
- $image_repo_size = $image_repo_size / 1024 / 1024;
- $quote_percentage = round(100 * ($image_repo_size / $quota));
- // for small quotas, so one decimal place
- if ($quota < 10) {
- $image_repo_size = sprintf('%.1f', $image_repo_size);
- } else {
- $image_repo_size = round($image_repo_size);
- }
- if ($image_repo_size > $quota) {
- $image_repo_size = $quota;
- }
-}
- <?php
- if ($quota) {
- ?>
- <i><?php echo elgg_echo("tidypics:quota") . ' ' . $image_repo_size . '/' . $quota . " MB ({$quote_percentage}%)"; ?></i><br />
- <?php
- }
- ?>
-
- *
-*/
$instructions = elgg_echo("tidypics:uploader:upload");
$max = elgg_echo('tidypics:uploader:basic', array($maxfilesize));