mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-08 03:52:12 +02:00
fixed filename argument when there are settings
This commit is contained in:
parent
1ba2615f0d
commit
2b5ee46d63
7
h-m-m
7
h-m-m
|
@ -183,6 +183,7 @@ const insert_sibling = 0;
|
||||||
const insert_child = 1;
|
const insert_child = 1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function config(&$mm, $key, $default)
|
function config(&$mm, $key, $default)
|
||||||
{
|
{
|
||||||
$mm[$key] =
|
$mm[$key] =
|
||||||
|
@ -440,9 +441,9 @@ function load_file(&$mm)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$mm['filename']=$argv[1];
|
if (isset($mm['arguments']['filename']))
|
||||||
|
$mm['filename'] = $mm['arguments']['filename'];
|
||||||
if (!file_exists($argv[1]))
|
else
|
||||||
{
|
{
|
||||||
load_empty_map($mm);
|
load_empty_map($mm);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue