diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-23 16:50:04 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-23 16:50:04 -0500 |
commit | 0aa823656bf92ae472cb6780afb24f5a0390b880 (patch) | |
tree | d73409d132fac52dc44f06831c88556de090e273 /lib/upload.php | |
parent | 4bfbb194ec1f9fc2647d1cb4e946fb95492076d6 (diff) | |
download | elgg-0aa823656bf92ae472cb6780afb24f5a0390b880.tar.gz elgg-0aa823656bf92ae472cb6780afb24f5a0390b880.tar.bz2 |
added editing of images
Diffstat (limited to 'lib/upload.php')
-rw-r--r-- | lib/upload.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/upload.php b/lib/upload.php index 30540dced..0b034517c 100644 --- a/lib/upload.php +++ b/lib/upload.php @@ -82,7 +82,7 @@ function tp_upload_memory_check($image_lib, $num_pixels) { * @return bool false = too large */ function tp_upload_check_max_size($image_size) { - $max_file_size = (float) get_plugin_setting('maxfilesize','tidypics'); + $max_file_size = (float) elgg_get_plugin_setting('maxfilesize', 'tidypics'); if (!$max_file_size) { // default to 5 MB if not set $max_file_size = 5; @@ -103,7 +103,7 @@ function tp_upload_check_quota($image_size, $owner_guid) { static $quota; if (!isset($quota)) { - $quota = get_plugin_setting('quota','tidypics'); + $quota = elgg_get_plugin_setting('quota', 'tidypics'); $quota = 1024 * 1024 * $quota; } |