Fixed FTP configuration tu use new Msd_Config class.
Dieser Commit ist enthalten in:
Ursprung
ea1ea34bf1
Commit
4f36119278
3 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen
|
@ -410,7 +410,10 @@ class ConfigController extends Msd_Controller_Action
|
||||||
$element = str_replace($group . '_', '', $element);
|
$element = str_replace($group . '_', '', $element);
|
||||||
$element = str_replace('_', '.', $element);
|
$element = str_replace('_', '.', $element);
|
||||||
$value = $this->view->config->getParam($group . '.' . $element);
|
$value = $this->view->config->getParam($group . '.' . $element);
|
||||||
if ($value !== null) {
|
if (is_array($value)) {
|
||||||
|
list (, $key) = explode('.', $element);
|
||||||
|
$subForm->setDefault($element, $value[$key]);
|
||||||
|
} else if ($value !== null) {
|
||||||
$subForm->setDefault($element, $value);
|
$subForm->setDefault($element, $value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -409,6 +409,9 @@ class Application_Form_Config_Ftp extends Zend_Form_SubForm
|
||||||
*/
|
*/
|
||||||
public function setDefault($name, $value)
|
public function setDefault($name, $value)
|
||||||
{
|
{
|
||||||
|
if (is_array($value)) {
|
||||||
|
list($ftpId, $key) = explode('.', $name);
|
||||||
|
}
|
||||||
$name = 'ftp_' . str_replace('.', '_', $name);
|
$name = 'ftp_' . str_replace('.', '_', $name);
|
||||||
parent::setDefault($name, $value);
|
parent::setDefault($name, $value);
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,7 +156,7 @@ class Msd_Language
|
||||||
/**
|
/**
|
||||||
* Get Translator
|
* Get Translator
|
||||||
*
|
*
|
||||||
* @return Zend_Translate
|
* @return Zend_Translate_Adapter
|
||||||
*/
|
*/
|
||||||
public function getTranslator()
|
public function getTranslator()
|
||||||
{
|
{
|
||||||
|
|
Laden …
In neuem Issue referenzieren