diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-10-31 14:35:08 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-10-31 14:35:08 +0100 |
commit | 62204b19727f41203c3cd3a500b7ffa279bda68f (patch) | |
tree | b02ec39cf41a9495a5b769eff33daacaee962f4a /php-scssphp-pre-0-1-0-compat.patch | |
parent | a8707dec9dbecc9fc5f3a14c255eedf850cdc21c (diff) |
php-scssphp: 0.1.1 (backport)
Diffstat (limited to 'php-scssphp-pre-0-1-0-compat.patch')
-rw-r--r-- | php-scssphp-pre-0-1-0-compat.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/php-scssphp-pre-0-1-0-compat.patch b/php-scssphp-pre-0-1-0-compat.patch new file mode 100644 index 0000000..6fa8467 --- /dev/null +++ b/php-scssphp-pre-0-1-0-compat.patch @@ -0,0 +1,21 @@ +diff --git a/classmap.php b/classmap.php +index 543efb9..717d80d 100644 +--- a/classmap.php ++++ b/classmap.php +@@ -13,6 +13,16 @@ + */ + + /** ++ * Autoload register ++ */ ++spl_autoload_register(function ($class) { ++ if (0 === strpos($class, 'Leafo\\ScssPhp\\')) { ++ $src = str_replace('\\', '/', $class) . '.php'; ++ @include_once $src; ++ } ++}); ++ ++/** + * @deprecated since 0.1.0 + */ + class scssc extends \Leafo\ScssPhp\Compiler |