From b4929e1b45d1cc52f9e784b55ef9b2ac93140160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sat, 10 Nov 2018 11:09:20 +0100 Subject: [PATCH] Conditional loading for activity templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- templates/main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/main.php b/templates/main.php index 288c518c6..87092f1a7 100644 --- a/templates/main.php +++ b/templates/main.php @@ -24,7 +24,9 @@ use OCP\Util; Util::addScript('activity', 'richObjectStringParser'); -Util::addScript('activity', 'templates'); +if (\OC_Util::getVersion()[0] > 14) { + Util::addScript('activity', 'templates'); +} Util::addScript('activity', 'script'); Util::addStyle('activity', 'style');