mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-05-20 23:16:32 +02:00
fixed root name when there's no file
This commit is contained in:
parent
1266938001
commit
bc127bf619
2
h-m-m
2
h-m-m
|
@ -2528,7 +2528,7 @@ function load_empty_map(&$mm)
|
||||||
]
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
$title = basename( $mm['filename'] ?? 'root' );
|
$title = basename( empty($mm['filename']) ? 'root' : $mm['filename'] );
|
||||||
if (substr($title,-4)=='.hmm')
|
if (substr($title,-4)=='.hmm')
|
||||||
$title = substr($title,0,-4);
|
$title = substr($title,0,-4);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue