Merge pull request #1049 from bergware/master

Update helptext.txt
This commit is contained in:
tom mortensen
2022-03-11 10:49:49 -08:00
committed by GitHub
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ function my_temp($value) {
}
function my_disk($name,$raw=false) {
global $display;
return $display['raw']||$raw ? $name : preg_replace('/(\d+)$/',' $1',$name);
return $display['raw']||$raw ? $name : ucfirst(preg_replace('/(\d+)$/',' $1',$name));
}
function my_disks($disk) {
return strpos($disk['status'],'_NP')===false;
+1 -1
View File
@@ -71,7 +71,7 @@ function tab_title($title,$path,$tag) {
$names = implode('|',array_merge(['disk','parity'],$pools));
if (preg_match("/^($names)/",$title)) {
$device = strtok($title,' ');
$title = str_replace($device,_(ucfirst(my_disk($device)),3),$title);
$title = str_replace($device,_(my_disk($device),3),$title);
}
$title = _(parse_text($title));
if (!$tag || substr($tag,-4)=='.png') {