Browse Source

Merge pull request #427 from haliphax/patch-1

pass topic to flaskbb_tpl_topic_controls
Peter Justin 7 years ago
parent
commit
91e9901087
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/templates/forum/topic_controls.html

+ 1 - 1
flaskbb/templates/forum/topic_controls.html

@@ -116,7 +116,7 @@
             <div class="btn btn-primary"><span class="fa fa-lock fa-fw"></span> {% trans %}Locked{% endtrans %}</div>
             <div class="btn btn-primary"><span class="fa fa-lock fa-fw"></span> {% trans %}Locked{% endtrans %}</div>
             {% endif %}
             {% endif %}
 
 
-            {{ run_hook("flaskbb_tpl_topic_controls") }}
+            {{ run_hook("flaskbb_tpl_topic_controls", topic=topic) }}
         </div>
         </div>
     </div>
     </div>
 {% endif %} {# end current_user.is_authenticated #}
 {% endif %} {# end current_user.is_authenticated #}