From 1f041c79c64d4ccd4213299a83a63ed68db16d46 Mon Sep 17 00:00:00 2001
From: kasimi <mail@kasimi.net>
Date: Mon, 21 Aug 2017 18:32:26 +0200
Subject: [PATCH] [ticket/15334] Add template event
 viewtopic_topic_title_before

PHPBB3-15334
---
 phpBB/docs/events.md                                | 7 +++++++
 phpBB/styles/prosilver/template/viewtopic_body.html | 1 +
 2 files changed, 8 insertions(+)

diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md
index 8bece6465e..4c80d99792 100644
--- a/phpBB/docs/events.md
+++ b/phpBB/docs/events.md
@@ -2671,6 +2671,13 @@ viewtopic_topic_title_after
 * Since: 3.1.7-RC1
 * Purpose: Add content directly after the topic title link on the View topic screen (outside of the h2 HTML tag)
 
+viewtopic_topic_title_before
+===
+* Locations:
+    + styles/prosilver/template/viewtopic_body.html
+* Since: 3.2.2-RC1
+* Purpose: Add content directly before the topic title link on the View topic screen (outside of the h2 HTML tag)
+
 viewtopic_topic_title_append
 ===
 * Locations:
diff --git a/phpBB/styles/prosilver/template/viewtopic_body.html b/phpBB/styles/prosilver/template/viewtopic_body.html
index 71d364bbb9..40249f24eb 100644
--- a/phpBB/styles/prosilver/template/viewtopic_body.html
+++ b/phpBB/styles/prosilver/template/viewtopic_body.html
@@ -1,5 +1,6 @@
 <!-- INCLUDE overall_header.html -->
 
+<!-- EVENT viewtopic_topic_title_before -->
 <h2 class="topic-title"><!-- EVENT viewtopic_topic_title_prepend --><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- EVENT viewtopic_topic_title_append --></h2>
 <!-- EVENT viewtopic_topic_title_after -->
 <!-- NOTE: remove the style="display: none" when you want to have the forum description on the topic body -->