mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Merge remote-tracking branch 'origin/support/2.7' into support/3.0
# Conflicts: # composer.json # composer.lock # core/email.class.inc.php # css/ui-lightness/jqueryui.scss # lib/bin/php-parse # lib/bin/php-parse.bat # lib/composer/autoload_classmap.php # lib/composer/autoload_static.php # lib/composer/installed.json # lib/composer/installed.php # lib/composer/platform_check.php # lib/nikic/php-parser/grammar/php7.y # lib/nikic/php-parser/lib/PhpParser/Builder/FunctionLike.php # lib/nikic/php-parser/lib/PhpParser/Builder/Param.php # lib/nikic/php-parser/lib/PhpParser/Builder/Property.php # lib/nikic/php-parser/lib/PhpParser/BuilderFactory.php # lib/nikic/php-parser/lib/PhpParser/BuilderHelpers.php # lib/nikic/php-parser/lib/PhpParser/ConstExprEvaluator.php # lib/nikic/php-parser/lib/PhpParser/Lexer/Emulative.php # lib/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php # lib/nikic/php-parser/lib/PhpParser/Node/Expr/Closure.php # lib/nikic/php-parser/lib/PhpParser/Node/Expr/FuncCall.php # lib/nikic/php-parser/lib/PhpParser/Node/Expr/MethodCall.php # lib/nikic/php-parser/lib/PhpParser/Node/Expr/New_.php # lib/nikic/php-parser/lib/PhpParser/Node/Expr/NullsafeMethodCall.php # lib/nikic/php-parser/lib/PhpParser/Node/Expr/StaticCall.php # lib/nikic/php-parser/lib/PhpParser/Node/FunctionLike.php # lib/nikic/php-parser/lib/PhpParser/Node/Param.php # lib/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php # lib/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassMethod.php # lib/nikic/php-parser/lib/PhpParser/Node/Stmt/Function_.php # lib/nikic/php-parser/lib/PhpParser/Node/Stmt/Property.php # lib/nikic/php-parser/lib/PhpParser/Node/UnionType.php # lib/nikic/php-parser/lib/PhpParser/NodeVisitor/NameResolver.php # lib/nikic/php-parser/lib/PhpParser/Parser/Php7.php # lib/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php # lib/nikic/php-parser/lib/PhpParser/PrettyPrinterAbstract.php # test/core/ConfigValidator/iTopConfigAstValidatorTest.php
This commit is contained in:
@@ -510,23 +510,17 @@ class EMail
|
||||
class Swift_Transport_LogFileTransport extends Swift_Transport_NullTransport
|
||||
{
|
||||
protected $sLogFile;
|
||||
|
||||
|
||||
/**
|
||||
* Sends the given message.
|
||||
*
|
||||
* @param Swift_Mime_Message $message
|
||||
* @param string[] $failedRecipients An array of failures by-reference
|
||||
*
|
||||
* @return int The number of sent emails
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function send(Swift_Mime_Message $message, &$failedRecipients = null)
|
||||
public function send(Swift_Mime_SimpleMessage $message, &$failedRecipients = null)
|
||||
{
|
||||
$hFile = @fopen($this->sLogFile, 'a');
|
||||
if ($hFile)
|
||||
{
|
||||
if ($hFile) {
|
||||
$sTxt = "================== ".date('Y-m-d H:i:s')." ==================\n";
|
||||
$sTxt .= $message->toString()."\n";
|
||||
|
||||
|
||||
@fwrite($hFile, $sTxt);
|
||||
@fclose($hFile);
|
||||
}
|
||||
@@ -551,12 +545,13 @@ class Swift_LogFileTransport extends Swift_Transport_LogFileTransport
|
||||
/**
|
||||
* Create a new LogFileTransport.
|
||||
*/
|
||||
public function __construct()
|
||||
public function __construct(Swift_Events_EventDispatcher $eventDispatcher)
|
||||
{
|
||||
parent::__construct($eventDispatcher);
|
||||
call_user_func_array(
|
||||
array($this, 'Swift_Transport_LogFileTransport::__construct'),
|
||||
Swift_DependencyContainer::getInstance()
|
||||
->createDependenciesFor('transport.null')
|
||||
array($this, 'Swift_Transport_LogFileTransport::__construct'),
|
||||
Swift_DependencyContainer::getInstance()
|
||||
->createDependenciesFor('transport.null')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user