mirror of
https://github.com/e107inc/e107.git
synced 2025-07-13 19:16:22 +02:00
Fix for news_template options - values should be retrieved from frontend theme.
This commit is contained in:
@ -1482,24 +1482,18 @@ class news_form_ui extends e_admin_form_ui
|
|||||||
|
|
||||||
if($mode === 'write')
|
if($mode === 'write')
|
||||||
{
|
{
|
||||||
|
|
||||||
if($tmp = e107::getTemplate('news', 'news', 'view'))
|
if($tmp = e107::getTemplate('news', 'news', 'view'))
|
||||||
{
|
{
|
||||||
return LAN_DEFAULT;
|
return LAN_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($tmp = e107::getTemplateInfo('news', 'news_view'))
|
if($tmp = e107::getLayouts('news', 'news_view', 'front', null, false, false))
|
||||||
{
|
{
|
||||||
$opt = array();
|
return $this->select('news_template', $tmp, $curVal, array('size'=>'xlarge'));
|
||||||
foreach($tmp as $k=>$val)
|
|
||||||
{
|
|
||||||
$opt[$k] = $val['title'];
|
|
||||||
|
|
||||||
}
|
|
||||||
return $this->select('news_template', $opt, $curVal, array('size'=>'xlarge'));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return LAN_DEFAULT;
|
return LAN_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user