vérifier existance de vvb.ini avant ouverture
This commit is contained in:
parent
02b74c3bf2
commit
fd9f5db323
|
@ -852,6 +852,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
|
||||||
if(is_dir($unit))
|
if(is_dir($unit))
|
||||||
{
|
{
|
||||||
if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) {
|
if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) {
|
||||||
|
if( file_exists(ROOT_DIR . '/' . $unit . '/vvb.ini')) {
|
||||||
$ini = parse_ini_file(ROOT_DIR . '/' . $unit . '/vvb.ini');
|
$ini = parse_ini_file(ROOT_DIR . '/' . $unit . '/vvb.ini');
|
||||||
if($ini)
|
if($ini)
|
||||||
{
|
{
|
||||||
|
@ -865,6 +866,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
|
||||||
$autoblogs[$unit] = $config;
|
$autoblogs[$unit] = $config;
|
||||||
unset($ini);
|
unset($ini);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue