Jump to content

Bug in translations: fix inheritance template filename in case of includes from different cross sources between theme, modules, ...


anapaulaohayo

Recommended Posts

In the smartyfront.config.inc.php file there is a comment to this effect:

line 177: 

// fix inheritance template filename in case of includes from different cross sources between theme, modules, ...

The solution can be replace these lines 177 - 181:

 $filename = $smarty->template_resource;
if (!isset($smarty->inheritance->sourceStack[0]) || $filename === $smarty->inheritance->sourceStack[0]->resource) {
	$filename = $smarty->source->name;
}

 

Reblaced by:

$filename = $smarty->template_resource;
if ($params['mod'] || !isset($smarty->inheritance->sourceStack[0]) || $filename === $smarty->inheritance->sourceStack[0]->resource) {
	$filename = $smarty->source->name;
}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...