1
0
Fork 0

Continued to switch the old configuration handling to the new one.

The configuration now is saved again.
(Installer is still to do)

QA
Dieser Commit ist enthalten in:
DSB 2012-08-05 17:05:08 +00:00
Ursprung 21f452a89b
Commit 0841d9a7a3
11 geänderte Dateien mit 59 neuen und 59 gelöschten Zeilen

Datei anzeigen

@ -28,7 +28,6 @@ class Msd_View_Helper_GetIcon extends Zend_View_Helper_Abstract
*/
public function getIcon($name, $title='', $size='')
{
//return true;
static $baseUrl = false;
if (!$baseUrl) {
$baseUrl = Zend_Controller_Front::getInstance()->getBaseUrl();
@ -40,11 +39,12 @@ class Msd_View_Helper_GetIcon extends Zend_View_Helper_Abstract
);
}
$img = '<img src="'.$baseUrl.'/%s/%s" alt="%s" title="%s" />';
$config = Msd_Registry::getConfig();
if ($size>'') {
$img = '<img src="'.$baseUrl.'/%s/%sx%s/%s" alt="%s" title="%s" />';
$ret = sprintf(
$img,
$this->view->config->getParam('paths.iconPath'),
$config->getParam('paths.iconPath'),
$size,
$size,
$icons[$name],
@ -53,7 +53,7 @@ class Msd_View_Helper_GetIcon extends Zend_View_Helper_Abstract
} else {
$ret = sprintf(
$img,
$this->view->config->getParam('paths.iconPath'),
$config->getParam('paths.iconPath'),
$icons[$name],
$title,
$title