mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
do not use syntax which requires php > 5.5.x
This commit is contained in:
parent
72c3207a75
commit
9b5ca19391
|
@ -530,9 +530,11 @@ class Settings { /* {{{ */
|
||||||
$extensions = $xml->xpath('/configuration/extensions/extension');
|
$extensions = $xml->xpath('/configuration/extensions/extension');
|
||||||
$this->_extensions = array();
|
$this->_extensions = array();
|
||||||
foreach($extensions as $extension) {
|
foreach($extensions as $extension) {
|
||||||
$extname = strval($extension->attributes()['name']);
|
$tmp = $extension->attributes();
|
||||||
|
$extname = strval($tmp['name']);
|
||||||
foreach($extension->children() as $parameter) {
|
foreach($extension->children() as $parameter) {
|
||||||
$this->_extensions[$extname][strval($parameter->attributes()['name'])] = strval($parameter);
|
$tmp2 = $parameter->attributes();
|
||||||
|
$this->_extensions[$extname][strval($tmp2['name'])] = strval($parameter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user