From 62204b19727f41203c3cd3a500b7ffa279bda68f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 31 Oct 2014 14:35:08 +0100 Subject: php-scssphp: 0.1.1 (backport) --- php-scssphp-pre-0-1-0-compat.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 php-scssphp-pre-0-1-0-compat.patch (limited to 'php-scssphp-pre-0-1-0-compat.patch') 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 -- cgit