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:
Gina Häußge 2015-03-09 10:27:10 +01:00
parent cf05b571ac
commit 2b51501a57

View file

@ -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