mirror of
https://github.com/nadrad/h-m-m.git
synced 2026-03-13 20:25:45 +01:00
fixed root name when there's no file
This commit is contained in:
parent
1266938001
commit
bc127bf619
1 changed files with 1 additions and 1 deletions
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')
|
||||
$title = substr($title,0,-4);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue