fix missing ZM namepsace

This commit is contained in:
Isaac Connor 2019-02-27 11:07:52 -05:00
parent 6e4444099b
commit a1f1c19c0f
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ if ($reload == 'reload') ob_start();
return '<span class="'.$class.'" title="'.$title.'">'.$S->Name() . ': ' . $S->disk_usage_percent().'%' . '</span>'; };
#$func = function($S){ return '<span title="">'.$S->Name() . ': ' . $S->disk_usage_percent().'%' . '</span>'; };
if ( count($storage_areas) >= 4 )
$storage_areas = Storage::find( array('ServerId'=>null) );
$storage_areas = ZM\Storage::find( array('ServerId'=>null) );
if ( count($storage_areas) < 4 )
echo implode( ', ', array_map ( $func, $storage_areas ) );
echo ' ' . ZM_PATH_MAP .': '. getDiskPercent(ZM_PATH_MAP).'%';