Fixed key generation for template rendering
Key was only generated correctly if a suffix was set, causing templates from plugins of the same type to override each other.
This commit is contained in:
parent
cf05b571ac
commit
2b51501a57
1 changed files with 2 additions and 1 deletions
|
|
@ -278,7 +278,8 @@ def index():
|
|||
else:
|
||||
data = include[1]
|
||||
|
||||
key = "plugin_" + name + data["suffix"] if "suffix" in data else ""
|
||||
suffix = data["suffix"] if "suffix" in data else ""
|
||||
key = "plugin_" + name + suffix
|
||||
if "replaces" in data:
|
||||
key = data["replaces"]
|
||||
templates[t]["entries"][key] = include
|
||||
|
|
|
|||
Loading…
Reference in a new issue