mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 00:39:32 -05:00
Do not capitalize first character of device name
This commit is contained in:
@@ -67,10 +67,11 @@ function find_pages($item) {
|
||||
}
|
||||
|
||||
function tab_title($title,$path,$tag) {
|
||||
global $docroot;
|
||||
if (preg_match('/^(disk|parity)/',$title)) {
|
||||
global $docroot,$pools;
|
||||
$names = implode('|',array_merge(['disk','parity'],$pools));
|
||||
if (preg_match("/^($names)/",$title)) {
|
||||
$device = strtok($title,' ');
|
||||
$title = str_replace($device,_(my_disk($device),3),$title);
|
||||
$title = str_replace($device,_(ucfirst(my_disk($device)),3),$title);
|
||||
}
|
||||
$title = _(parse_text($title));
|
||||
if (!$tag || substr($tag,-4)=='.png') {
|
||||
|
||||
Reference in New Issue
Block a user