Fixed bug in setParam.
Dieser Commit ist enthalten in:
Ursprung
c897ea9217
Commit
eeca3516d7
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
|
@ -122,6 +122,10 @@ class Msd_Config
|
|||
*/
|
||||
public function getParam($paramName, $defaultValue = null)
|
||||
{
|
||||
if (isset($this->_config[$paramName])) {
|
||||
return $this->_config[$paramName];
|
||||
}
|
||||
|
||||
// check for section e.g. interface.theme
|
||||
if (strpos($paramName, '.') !== false) {
|
||||
list($section, $paramName) = explode('.', $paramName);
|
||||
|
@ -132,10 +136,6 @@ class Msd_Config
|
|||
}
|
||||
}
|
||||
|
||||
if (isset($this->_config[$paramName])) {
|
||||
return $this->_config[$paramName];
|
||||
}
|
||||
|
||||
return $defaultValue;
|
||||
}
|
||||
|
||||
|
@ -150,7 +150,7 @@ class Msd_Config
|
|||
*/
|
||||
public function setParam($paramName, $paramValue)
|
||||
{
|
||||
if (strpos('paramName', '.') !== false) {
|
||||
if (strpos($paramName, '.') !== false) {
|
||||
list($section, $paramName) = explode('.', $paramName);
|
||||
$this->_config[$section][$paramName] = $paramValue;
|
||||
} else {
|
||||
|
|
Laden …
In neuem Issue referenzieren