summaryrefslogtreecommitdiffstats
path: root/php-scssphp-pre-0-1-0-compat.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-10-31 14:35:08 +0100
committerRemi Collet <fedora@famillecollet.com>2014-10-31 14:35:08 +0100
commit62204b19727f41203c3cd3a500b7ffa279bda68f (patch)
treeb02ec39cf41a9495a5b769eff33daacaee962f4a /php-scssphp-pre-0-1-0-compat.patch
parenta8707dec9dbecc9fc5f3a14c255eedf850cdc21c (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.patch21
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