mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Issue #4348 Always using tablestyle in news on a v2.3 theme spec.
This commit is contained in:
parent
2b12ece88d
commit
06888f1fcf
@ -222,14 +222,11 @@ class news_front
|
|||||||
|
|
||||||
$unique = $this->getRenderId();
|
$unique = $this->getRenderId();
|
||||||
|
|
||||||
if($this->caption !== null)
|
if(defset('THEME_VERSION') === 2.3 || $this->caption !== null) // always use tablerender with 2.3 theme spec
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$this->addDebug("tablerender ID", $unique);
|
$this->addDebug("tablerender ID", $unique);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
e107::getRender()->setUniqueId($unique)->tablerender($this->caption, $this->text, 'news');
|
e107::getRender()->setUniqueId($unique)->tablerender($this->caption, $this->text, 'news');
|
||||||
|
|
||||||
if(!empty($this->comments))
|
if(!empty($this->comments))
|
||||||
@ -1222,7 +1219,7 @@ class news_front
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(isset($tmp['caption']) && $tmp['caption'] !== null) // to initiate tablerender() usage.
|
if(defset('THEME_VERSION') === 2.3 || (isset($tmp['caption']) && $tmp['caption'] !== null)) // to initiate tablerender() usage.
|
||||||
{
|
{
|
||||||
$this->addDebug('Internal Route', $this->route);
|
$this->addDebug('Internal Route', $this->route);
|
||||||
$this->route = 'news/view'; // used for tablerender id.
|
$this->route = 'news/view'; // used for tablerender id.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user