Skip to content

Commit

Permalink
Conditional loading for activity templates
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Nov 10, 2018
1 parent a569078 commit b4929e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit b4929e1

Please sign in to comment.