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