Project

General

Profile

« Previous | Next » 

Revision 1852

Added by darkviper over 11 years ago

updated Twig template engine to stable version 1.11.1 step2

View differences:

Autoloader.php
20 20
    /**
21 21
     * Registers Twig_Autoloader as an SPL autoloader.
22 22
     */
23
    static public function register()
23
    public static function register()
24 24
    {
25 25
        ini_set('unserialize_callback_func', 'spl_autoload_call');
26 26
        spl_autoload_register(array(new self, 'autoload'));
......
29 29
    /**
30 30
     * Handles autoloading of classes.
31 31
     *
32
     * @param  string  $class  A class name.
33
     *
34
     * @return boolean Returns true if the class has been loaded
32
     * @param string $class A class name.
35 33
     */
36
    static public function autoload($class)
34
    public static function autoload($class)
37 35
    {
38 36
        if (0 !== strpos($class, 'Twig')) {
39 37
            return;

Also available in: Unified diff