mirror of
https://github.com/unraid/webgui.git
synced 2026-04-24 02:58:57 -05:00
Fixes for ZFS subpools
ZFS subpools have a tilde in their name, which is an illegal character in PHP keys and HTML ids. A tilde is automatically replaced to avoid conflicts. The MAIN page shows the total of a ZFS pool at end, also when subpools are part of it.
This commit is contained in:
@@ -63,6 +63,9 @@ function my_disks($disk) {
|
||||
function my_hyperlink($text, $link) {
|
||||
return str_replace(['[',']'],["<a href=\"$link\">","</a>"],$text);
|
||||
}
|
||||
function no_tilde($name) {
|
||||
return str_replace('~','_-_',$name);
|
||||
}
|
||||
function prefix($key) {
|
||||
return preg_replace('/\d+$/','',$key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user