mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
add backup_config_section_xmlrpc to legacy.inc
This commit is contained in:
parent
d0ebc69f45
commit
1b7e9e25cd
@ -269,3 +269,15 @@ function restore_config_section_xmlrpc($new_config)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $sectionKeys
|
||||
* @return array config data
|
||||
*/
|
||||
function backup_config_section_xmlrpc($sectionKeys)
|
||||
{
|
||||
global $config;
|
||||
require_once("config.inc");
|
||||
|
||||
return array_intersect_key($config, array_flip($sectionKeys));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user