mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 14:37:20 +00:00
fix indenting
This commit is contained in:
parent
42a38984f7
commit
22f23c71f0
|
@ -940,6 +940,8 @@ class Settings { /* {{{ */
|
|||
if (is_null($configFilePath))
|
||||
$configFilePath = $this->_configFilePath;
|
||||
|
||||
// copy($configFilePath, $configFilePath.'.'.time());
|
||||
|
||||
// Load
|
||||
$xml = simplexml_load_string(file_get_contents($configFilePath));
|
||||
$this->getXMLNode($xml, '/', 'configuration');
|
||||
|
@ -1260,9 +1262,9 @@ class Settings { /* {{{ */
|
|||
*/
|
||||
foreach($extension as $fieldname=>$confvalue) {
|
||||
if($fieldname != '___disable__' && $confvalue) {
|
||||
$parameter = $extnode->addChild('parameter');
|
||||
$parameter[0] = isset($extension[$fieldname]) ? (is_array($extension[$fieldname]) ? implode(',', $extension[$fieldname]) : $extension[$fieldname]) : '';
|
||||
$this->setXMLAttributValue($parameter, 'name', $fieldname);
|
||||
$parameter = $extnode->addChild('parameter');
|
||||
$parameter[0] = isset($extension[$fieldname]) ? (is_array($extension[$fieldname]) ? implode(',', $extension[$fieldname]) : $extension[$fieldname]) : '';
|
||||
$this->setXMLAttributValue($parameter, 'name', $fieldname);
|
||||
}
|
||||
}
|
||||
/* Old code saves those parameters listed in the configuration
|
||||
|
|
Loading…
Reference in New Issue
Block a user