Service class items

Items / webpages /attachment message
This commit is contained in:
Christian Vogeley
2013-09-08 17:19:09 +02:00
parent 94fb9c2406
commit f4dfb90dbc
2 changed files with 49 additions and 1 deletions

View File

@@ -339,7 +339,7 @@ function attach_store($channel,$observer_hash,$options = '',$arr = null) {
intval($channel_id)
);
if(($r) && (($r[0]['total'] + $filesize) > ($limit - $existing_size))) {
$ret['message'] = upgrade_message(true);
$ret['message'] = upgrade_message(true).sprintf(t("You have reached your limit of %1$.0f Mbytes attachment storage."),$limit / 1024000);
@unlink($src);
return $ret;
}