Update app_defaults.php

This commit is contained in:
Alex 2025-03-14 13:41:52 -07:00 committed by GitHub
parent 08da03da0d
commit 3b3921bbc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -45,9 +45,9 @@
}
//check for existing configuration
if (!empty($setting->get('switch','conf')) && file_exists($setting->get('switch','conf')."/autoload_configs/translate.conf.xml")) {
if (!empty($settings->get('switch','conf')) && file_exists($settings->get('switch','conf')."/autoload_configs/translate.conf.xml")) {
//import existing data
$xml = file_get_contents($setting->get('switch','conf')."/autoload_configs/translate.conf.xml");
$xml = file_get_contents($settings->get('switch','conf')."/autoload_configs/translate.conf.xml");
//convert the xml string to an xml object
$xml = simplexml_load_string($xml);