1
0
Fork 0

Fixed FTP configuration tu use new Msd_Config class.

Dieser Commit ist enthalten in:
D4rk4ng3l 2012-08-08 21:39:42 +00:00
Ursprung ea1ea34bf1
Commit 4f36119278
3 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -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);
} }
} }

Datei anzeigen

@ -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);
} }

Datei anzeigen

@ -156,7 +156,7 @@ class Msd_Language
/** /**
* Get Translator * Get Translator
* *
* @return Zend_Translate * @return Zend_Translate_Adapter
*/ */
public function getTranslator() public function getTranslator()
{ {