diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-04-18 17:09:25 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-04-19 15:46:41 -0500 |
commit | 16c4755e03f2a79437418a732cb8a6cfb5178cf9 (patch) | |
tree | f44d220f06e497be12d9e91c07ec8e32f3c72ec6 /apps | |
parent | 01c9d00e1d6f5c558cade0689283fea953b3f581 (diff) | |
download | nextcloud-server-16c4755e03f2a79437418a732cb8a6cfb5178cf9.tar.gz nextcloud-server-16c4755e03f2a79437418a732cb8a6cfb5178cf9.zip |
Rename renderHTML to renderHtml
* fixes #4383
* improves consistency
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 4 | ||||
-rw-r--r-- | apps/sharebymail/tests/ShareByMailProviderTest.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index 761a2600d7c..767bdc86a4a 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -329,7 +329,7 @@ class ShareByMailProvider implements IShareProvider { $message->setSubject($subject); $message->setPlainBody($emailTemplate->renderText()); - $message->setHtmlBody($emailTemplate->renderHTML()); + $message->setHtmlBody($emailTemplate->renderHtml()); $this->mailer->send($message); } @@ -368,7 +368,7 @@ class ShareByMailProvider implements IShareProvider { $message->setTo([$shareWith]); $message->setSubject($subject); $message->setBody($emailTemplate->renderText(), 'text/plain'); - $message->setHtmlBody($emailTemplate->renderHTML()); + $message->setHtmlBody($emailTemplate->renderHtml()); $this->mailer->send($message); } diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php index 8761f49f0f4..581ca9b1b95 100644 --- a/apps/sharebymail/tests/ShareByMailProviderTest.php +++ b/apps/sharebymail/tests/ShareByMailProviderTest.php @@ -824,7 +824,7 @@ class ShareByMailProviderTest extends TestCase { ->with('Text Render'); $template ->expects($this->once()) - ->method('renderHTML') + ->method('renderHtml') ->willReturn('HTML Render'); $message ->expects($this->once()) @@ -939,7 +939,7 @@ class ShareByMailProviderTest extends TestCase { ->with('Text Render'); $template ->expects($this->once()) - ->method('renderHTML') + ->method('renderHtml') ->willReturn('HTML Render'); $message ->expects($this->once()) |