diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-11-03 09:16:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 09:16:20 +0100 |
commit | 9ebbb3c6549200cc3c0c2a5daeabd5e64f898133 (patch) | |
tree | 11492e9256d1cfb12f4672e19baadae591195d79 | |
parent | 181de173722cbaf19965bbf0487d7fed1da756b3 (diff) | |
parent | ffba8297df6663b26260f58fa8a681124e2d839e (diff) | |
download | nextcloud-server-9ebbb3c6549200cc3c0c2a5daeabd5e64f898133.tar.gz nextcloud-server-9ebbb3c6549200cc3c0c2a5daeabd5e64f898133.zip |
Merge pull request #1991 from nextcloud/code-check-more-shipped-apps
Run code checker on more shipped apps
-rw-r--r-- | .drone.yml | 3 | ||||
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/.drone.yml b/.drone.yml index 339e38c17d5..5c407bf8663 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,6 +22,9 @@ pipeline: - ./occ app:check-code admin_audit - ./occ app:check-code comments - ./occ app:check-code federation + - ./occ app:check-code sharebymail + - ./occ app:check-code systemtags + - ./occ app:check-code theming - ./occ app:check-code workflowengine when: matrix: 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); |