mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
minor #1319 Simplified Twig_Autoloader (hason)
This PR was merged into the 1.15-dev branch.
Discussion
----------
Simplified Twig_Autoloader
Commits
-------
94fff30 Simplified Twig_Autoloader
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user