Update Twig. This closes #295
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
/*
|
||||
* This file is part of Twig.
|
||||
*
|
||||
* (c) 2010 Fabien Potencier
|
||||
* (c) Fabien Potencier
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
@@ -24,8 +24,17 @@
|
||||
*/
|
||||
class Twig_Error_Loader extends Twig_Error
|
||||
{
|
||||
public function __construct($message, $lineno = -1, $filename = null, Exception $previous = null)
|
||||
public function __construct($message, $lineno = -1, $source = null, Exception $previous = null)
|
||||
{
|
||||
parent::__construct($message, false, false, $previous);
|
||||
if (PHP_VERSION_ID < 50300) {
|
||||
$this->previous = $previous;
|
||||
Exception::__construct('');
|
||||
} else {
|
||||
Exception::__construct('', 0, $previous);
|
||||
}
|
||||
$this->appendMessage($message);
|
||||
$this->setTemplateLine(false);
|
||||
}
|
||||
}
|
||||
|
||||
class_alias('Twig_Error_Loader', 'Twig\Error\LoaderError', false);
|
||||
|
Reference in New Issue
Block a user