projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ae89c88
)
Simplified Twig_Autoloader
author
Martin Hasoň
<martin.hason@gmail.com>
Thu, 23 Jan 2014 11:07:16 +0000 (12:07 +0100)
committer
Martin Hasoň
<martin.hason@gmail.com>
Thu, 23 Jan 2014 11:07:16 +0000 (12:07 +0100)
lib/Twig/Autoloader.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Autoloader.php
b/lib/Twig/Autoloader.php
index
7007d31
..
0ae1127
100644
(file)
--- a/
lib/Twig/Autoloader.php
+++ b/
lib/Twig/Autoloader.php
@@
-24,9
+24,9
@@
class Twig_Autoloader
public static function register($prepend = false)
{
if (version_compare(phpversion(), '5.3.0', '>=')) {
- spl_autoload_register(array(new self, 'autoload'), true, $prepend);
+ spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend);
} else {
- spl_autoload_register(array(new self, 'autoload'));
+ spl_autoload_register(array(__CLASS__, 'autoload'));
}
}