forked from Wavyzz/dolibarr
Fix: Optimize for small screen
This commit is contained in:
@@ -1072,9 +1072,11 @@ function dol_now($mode='gmt')
|
|||||||
*/
|
*/
|
||||||
function dol_print_size($size,$shortvalue=0,$shortunit=0)
|
function dol_print_size($size,$shortvalue=0,$shortunit=0)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $conf,$langs;
|
||||||
$level=1024;
|
$level=1024;
|
||||||
|
|
||||||
|
if (! empty($conf->dol_optimize_smallscreen)) $shortunit=1;
|
||||||
|
|
||||||
// Set value text
|
// Set value text
|
||||||
if (empty($shortvalue) || $size < ($level*10))
|
if (empty($shortvalue) || $size < ($level*10))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user