Implemented new Configuration handling
Dieser Commit ist enthalten in:
Ursprung
6cfb97b401
Commit
edc44e2f30
22 geänderte Dateien mit 730 neuen und 107 gelöschten Zeilen
|
|
@ -73,8 +73,8 @@ class Msd_View_Helper_GetIcon extends Zend_View_Helper_Abstract
|
|||
if (!$icons) {
|
||||
$config = Msd_Configuration::getInstance();
|
||||
$file = realpath(
|
||||
APPLICATION_PATH . DS . '..' . DS . 'public'
|
||||
. DS . $config->get('paths.iconpath') . DS . 'icon.ini'
|
||||
APPLICATION_PATH . '/../public/'
|
||||
. $config->get('paths.iconpath') . '/icon.ini'
|
||||
);
|
||||
$iconsIni = new Zend_Config_Ini($file, 'icons');
|
||||
$icons = $iconsIni->toArray();
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ class Msd_View_Helper_GetIconSrc extends Zend_View_Helper_Abstract
|
|||
if (!$icons) {
|
||||
$config = Msd_Configuration::getInstance();
|
||||
$file = realpath(
|
||||
APPLICATION_PATH . DS . '..' . DS . 'public'
|
||||
. DS . $config->get('paths.iconpath') . DS .'icon.ini'
|
||||
APPLICATION_PATH . '/../public/'
|
||||
. $config->get('paths.iconpath') . '/icon.ini'
|
||||
);
|
||||
$iconsIni = new Zend_Config_Ini($file, 'icons');
|
||||
$icons = $iconsIni->toArray();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
$currentLanguage = $this->language;
|
||||
$fallbackLanguage = $currentLanguage;
|
||||
$languages = $this->languages;
|
||||
$baseLangFile = APPLICATION_PATH . DS . 'language' . DS . '%s' . DS . 'lang.php';
|
||||
$baseLangFile = APPLICATION_PATH . '/language/%s/lang.php';
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function changeLang(lang)
|
||||
|
|
|
|||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren