summaryrefslogtreecommitdiffstats
path: root/apps/sharebymail/lib/ShareByMailProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sharebymail/lib/ShareByMailProvider.php')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index a332bd13d88..e084ce3288f 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -37,6 +37,7 @@ use OC\Share20\Share;
use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\IShare;
use OCP\Share\IShareProvider;
+use OCP\Template;
/**
* Class ShareByMail
@@ -208,7 +209,7 @@ class ShareByMailProvider implements IShareProvider {
*/
protected function createMailBody($template, $filename, $link, $owner, $initiator) {
- $mailBodyTemplate = new \OC_Template('sharebymail', $template, '');
+ $mailBodyTemplate = new Template('sharebymail', $template, '');
$mailBodyTemplate->assign ('filename', $filename);
$mailBodyTemplate->assign ('link', $link);
$mailBodyTemplate->assign ('owner', $owner);