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:
1 parent
cf05b571ac
commit
2b51501a57
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user