mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Remove useless NewInstance
Bugfix: BodyStructure->SearchCharset return value
This commit is contained in:
parent
82e560bc53
commit
693e0f4c10
61 changed files with 802 additions and 1345 deletions
|
|
@ -446,7 +446,7 @@ abstract class HtmlUtils
|
|||
{
|
||||
if ($oTextNode && 0 < \strlen($oTextNode->wholeText)/* && \preg_match('/http[s]?:\/\//i', $oTextNode->wholeText)*/)
|
||||
{
|
||||
$sText = \MailSo\Base\LinkFinder::NewInstance()
|
||||
$sText = (new \MailSo\Base\LinkFinder)
|
||||
->Text($oTextNode->wholeText)
|
||||
->UseDefaultWrappers(true)
|
||||
->CompileText()
|
||||
|
|
@ -1037,7 +1037,7 @@ abstract class HtmlUtils
|
|||
return '';
|
||||
}
|
||||
|
||||
$sText = \MailSo\Base\LinkFinder::NewInstance()
|
||||
$sText = (new \MailSo\Base\LinkFinder)
|
||||
->Text($sText)
|
||||
->UseDefaultWrappers($bLinksWithTargetBlank)
|
||||
->CompileText()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue