diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-06-30 13:33:10 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-06-30 13:33:10 +0200 |
commit | 3af42fe075f3333441d27c3dd2720efd0fe2ee1d (patch) | |
tree | e63e5941a2110d290e3b93dc6009cdf207091567 /php-scssphp-pre-0-1-0-compat.patch | |
parent | 62204b19727f41203c3cd3a500b7ffa279bda68f (diff) |
php-scssphp: 0.1.6 (backport from fedora)
Diffstat (limited to 'php-scssphp-pre-0-1-0-compat.patch')
-rw-r--r-- | php-scssphp-pre-0-1-0-compat.patch | 19 |
1 files changed, 6 insertions, 13 deletions
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 |