Skip to content

different logic (rules) for back compability in news template variables in theme.php #4124

@Jimmi08

Description

@Jimmi08

In almost each cases those globals have first priority:
Checked:
$NEWSSTYLE
$COMMENTSTYLE

But $NEWSLISTSTYLE is used this way:

		if(deftrue('BOOTSTRAP'))  // v2.x
		{
			$template = e107::getTemplate('news', 'news', 'list');
		}
		else  // v1.x
		{           
			if(empty($NEWSLISTSTYLE))
			{

$NEWSLISTSTYLE should have priority too before BOOTSTRAP, because others variables work this way.

Thanks

Metadata

Metadata

Assignees

Labels

type: enhancementAn improvement or new feature requesttype: questionAn ask about behavior that is not found documented anywhere

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions