diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-05-07 11:18:59 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-05-07 11:18:59 +0100 |
commit | a2810985afabcc31d3eace5e61d8ea25b852ba17 (patch) | |
tree | d254e77a7aeadd875db2dc73532da78094238ffd /dev-php/twig/files/1.40.1-autoloader-path.patch | |
parent | eab5731cdf11d4ae8cdf111461d46fd96c5bdd37 (diff) |
gentoo resync : 07.05.2019
Diffstat (limited to 'dev-php/twig/files/1.40.1-autoloader-path.patch')
-rw-r--r-- | dev-php/twig/files/1.40.1-autoloader-path.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-php/twig/files/1.40.1-autoloader-path.patch b/dev-php/twig/files/1.40.1-autoloader-path.patch new file mode 100644 index 000000000000..8c236883e070 --- /dev/null +++ b/dev-php/twig/files/1.40.1-autoloader-path.patch @@ -0,0 +1,16 @@ +--- a/lib/Twig/Autoloader.php 2019-04-29 16:12:28.000000000 +0200 ++++ b/lib/Twig/Autoloader.php.new 2019-05-06 21:37:39.955238245 +0200 +@@ -43,9 +43,11 @@ + return; + } + +- if (is_file($file = __DIR__.'/../'.str_replace(['_', "\0"], ['/', ''], $class).'.php')) { ++ if (is_file($file = __DIR__.'/../'.str_replace(['Twig_', "\0"], ['lib/', ''], $class).'.php')) { + require $file; +- } elseif (is_file($file = __DIR__.'/../../src/'.str_replace(['Twig\\', '\\', "\0"], ['', '/', ''], $class).'.php')) { ++ } elseif (is_file($file = __DIR__.'/../'.str_replace(['_', "\0"], ['/', ''], $class).'.php')) { ++ require $file; ++ } elseif (is_file($file = __DIR__.'/../src/'.str_replace(['Twig\\', '\\', "\0"], ['', '/', ''], $class).'.php')) { + require $file; + } + } |