Fix: Optimize for small screen

This commit is contained in:
Laurent Destailleur
2013-04-20 17:49:24 +02:00
parent 162ccf68b6
commit 2008fd1419

View File

@@ -1072,9 +1072,11 @@ function dol_now($mode='gmt')
*/
function dol_print_size($size,$shortvalue=0,$shortunit=0)
{
global $langs;
global $conf,$langs;
$level=1024;
if (! empty($conf->dol_optimize_smallscreen)) $shortunit=1;
// Set value text
if (empty($shortvalue) || $size < ($level*10))
{