1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 22:27:34 +02:00

#515 - Custom theme config now shows all the fields

This commit is contained in:
Moc
2014-06-13 12:02:54 +02:00
parent 19d6ab7354
commit c3f986b77c

View File

@@ -943,7 +943,6 @@ class themeHandler
{ {
$mes = e107::getMessage(); $mes = e107::getMessage();
$mes->addDebug("Rendering Theme Config"); $mes->addDebug("Rendering Theme Config");
$this->loadThemeConfig(); $this->loadThemeConfig();
@@ -951,10 +950,13 @@ class themeHandler
if($this->themeConfigObj) if($this->themeConfigObj)
{ {
$var = call_user_func(array(&$this->themeConfigObj, 'config')); $var = call_user_func(array(&$this->themeConfigObj, 'config'));
vartrue($text); // avoid notice
foreach ($var as $val) foreach ($var as $val)
{ {
$text = "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."</td></tr>"; $text .= "<tr><td><b>".$val['caption']."</b>:</td><td colspan='2'>".$val['html']."</td></tr>";
} }
return $text; return $text;
} }