Don't auto-add default storage area to header. If someone wants to see it's space in the header they can add it to storage areas
This commit is contained in:
parent
3368f94c1a
commit
38a09bbd18
|
@ -286,7 +286,7 @@ function getNavBarHTML($reload = null) {
|
||||||
ZM\Error('Potentially invalid value for ZM_LOG_DATABASE_LIMIT: ' . ZM_LOG_DATABASE_LIMIT);
|
ZM\Error('Potentially invalid value for ZM_LOG_DATABASE_LIMIT: ' . ZM_LOG_DATABASE_LIMIT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo makePopupLink( '?view=log', 'zmLog', 'log', '<span class="'.logState().'">'.translate('Log').'</span>' );
|
echo makePopupLink('?view=log', 'zmLog', 'log', '<span class="'.logState().'">'.translate('Log').'</span>');
|
||||||
}
|
}
|
||||||
?></li>
|
?></li>
|
||||||
<?php
|
<?php
|
||||||
|
@ -386,9 +386,6 @@ if ( (!ZM_OPT_USE_AUTH) or $user ) {
|
||||||
foreach ( $storage_areas as $area ) {
|
foreach ( $storage_areas as $area ) {
|
||||||
$storage_paths[$area->Path()] = $area;
|
$storage_paths[$area->Path()] = $area;
|
||||||
}
|
}
|
||||||
if ( ! isset($storage_paths[ZM_DIR_EVENTS]) ) {
|
|
||||||
array_push( $storage_areas, new ZM\Storage() );
|
|
||||||
}
|
|
||||||
$func = function($S){
|
$func = function($S){
|
||||||
$class = '';
|
$class = '';
|
||||||
if ( $S->disk_usage_percent() > 98 ) {
|
if ( $S->disk_usage_percent() > 98 ) {
|
||||||
|
|
Loading…
Reference in New Issue