fix getting bytes from shorthand in php
This commit is contained in:
parent
721c065a44
commit
39f7660a1d
10 changed files with 36 additions and 56 deletions
|
@ -1141,9 +1141,7 @@ function photos_content(App $a)
|
|||
'$qcomment' => $qcomment,
|
||||
'$rand_num' => Crypto::randomDigits(12),
|
||||
// Dropzone
|
||||
//'$max_imagesize' => Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
||||
// Strings::getBytresFromShorthand not working, so just workaround in template and serve the bare value
|
||||
'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||
'$max_imagesize' => floor(Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')) / 1000000),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
@ -1200,9 +1198,7 @@ function photos_content(App $a)
|
|||
'$qcomment' => $qcomment,
|
||||
'$rand_num' => Crypto::randomDigits(12),
|
||||
// Dropzone
|
||||
//'$max_imagesize' => Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
||||
// Strings::getBytresFromShorthand not working, so just workaround in template and serve the bare value
|
||||
'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||
'$max_imagesize' => floor(Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')) / 1000000),
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -1278,9 +1274,7 @@ function photos_content(App $a)
|
|||
'$qcomment' => $qcomment,
|
||||
'$rand_num' => Crypto::randomDigits(12),
|
||||
// Dropzone
|
||||
//'$max_imagesize' => Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize'));
|
||||
// Strings::getBytresFromShorthand not working, so just workaround in template and serve the bare value
|
||||
'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||
'$max_imagesize' => floor(Strings::getBytesFromShorthand(DI::config()->get('system', 'maximagesize')) / 1000000),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue