From 3af42fe075f3333441d27c3dd2720efd0fe2ee1d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 30 Jun 2015 13:33:10 +0200 Subject: php-scssphp: 0.1.6 (backport from fedora) --- php-scssphp-pre-0-1-0-compat.patch | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (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 index 6fa8467..a853138 100644 --- a/php-scssphp-pre-0-1-0-compat.patch +++ b/php-scssphp-pre-0-1-0-compat.patch @@ -1,21 +1,14 @@ diff --git a/classmap.php b/classmap.php -index 543efb9..717d80d 100644 +index 2746deb..2ad7588 100644 --- a/classmap.php +++ b/classmap.php -@@ -13,6 +13,16 @@ +@@ -12,6 +12,9 @@ + * @link http://leafo.net/scssphp */ - /** -+ * Autoload register -+ */ -+spl_autoload_register(function ($class) { -+ if (0 === strpos($class, 'Leafo\\ScssPhp\\')) { -+ $src = str_replace('\\', '/', $class) . '.php'; -+ @include_once $src; -+ } -+}); ++// Autoloader ++require_once dirname(__DIR__) . '/Leafo/ScssPhp/autoload.php'; + -+/** + /** * @deprecated since 0.1.0 */ - class scssc extends \Leafo\ScssPhp\Compiler -- cgit