Merge pull request #1991 from nextcloud/code-check-more-shipped-apps

Run code checker on more shipped apps
pull/1993/head
Morris Jobke 2016-11-03 09:16:20 +07:00 committed by GitHub
commit 9ebbb3c654
2 changed files with 5 additions and 1 deletions

@ -22,6 +22,9 @@ pipeline:
- ./occ app:check-code admin_audit - ./occ app:check-code admin_audit
- ./occ app:check-code comments - ./occ app:check-code comments
- ./occ app:check-code federation - ./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 - ./occ app:check-code workflowengine
when: when:
matrix: matrix:

@ -37,6 +37,7 @@ use OC\Share20\Share;
use OCP\Share\Exceptions\ShareNotFound; use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\IShare; use OCP\Share\IShare;
use OCP\Share\IShareProvider; use OCP\Share\IShareProvider;
use OCP\Template;
/** /**
* Class ShareByMail * Class ShareByMail
@ -208,7 +209,7 @@ class ShareByMailProvider implements IShareProvider {
*/ */
protected function createMailBody($template, $filename, $link, $owner, $initiator) { 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 ('filename', $filename);
$mailBodyTemplate->assign ('link', $link); $mailBodyTemplate->assign ('link', $link);
$mailBodyTemplate->assign ('owner', $owner); $mailBodyTemplate->assign ('owner', $owner);