mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16382] Update Twig_Loader
PHPBB3-16382
This commit is contained in:
@@ -16,7 +16,7 @@ namespace phpbb\template\twig;
|
||||
/**
|
||||
* Twig Template loader
|
||||
*/
|
||||
class loader extends \Twig_Loader_Filesystem
|
||||
class loader extends \Twig\Loader\FilesystemLoader
|
||||
{
|
||||
protected $safe_directories = array();
|
||||
|
||||
@@ -42,7 +42,7 @@ class loader extends \Twig_Loader_Filesystem
|
||||
* Set safe directories
|
||||
*
|
||||
* @param array $directories Array of directories that are safe (empty to clear)
|
||||
* @return \Twig_Loader_Filesystem
|
||||
* @return \Twig\Loader\FilesystemLoader
|
||||
*/
|
||||
public function setSafeDirectories($directories = array())
|
||||
{
|
||||
@@ -63,7 +63,7 @@ class loader extends \Twig_Loader_Filesystem
|
||||
* Add safe directory
|
||||
*
|
||||
* @param string $directory Directory that should be added
|
||||
* @return \Twig_Loader_Filesystem
|
||||
* @return \Twig\Loader\FilesystemLoader
|
||||
*/
|
||||
public function addSafeDirectory($directory)
|
||||
{
|
||||
|
Reference in New Issue
Block a user