Update lessphp to 011afcca8e
authorpaladox <thomasmulhall410@yahoo.com>
Wed, 19 Nov 2014 07:25:26 +0000 (07:25 +0000)
committerPaladox <thomasmulhall410@yahoo.com>
Mon, 24 Nov 2014 10:56:00 +0000 (10:56 +0000)
Source:

* https://github.com/leafo/lessphp/blob/011afcca8e6f1000a6e789921ba805fa578271a3/lessc.inc.php

Changes:

* https://github.com/leafo/lessphp/compare/2cc77e3c7b...011afcca8e

Change-Id: Ic21b97e52ec99b8eef094a902ee346cf40a9f174

includes/libs/lessc.inc.php

index 61ed771..2caa0b6 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 // @codingStandardsIgnoreFile File external to MediaWiki. Ignore coding conventions checks.
 /**
 <?php
 // @codingStandardsIgnoreFile File external to MediaWiki. Ignore coding conventions checks.
 /**
- * lessphp v0.4.0@2cc77e3c7b
+ * lessphp v0.4.0@011afcca8e
  * http://leafo.net/lessphp
  *
  * LESS CSS compiler, adapted from http://lesscss.org
  * http://leafo.net/lessphp
  *
  * LESS CSS compiler, adapted from http://lesscss.org
@@ -374,9 +374,9 @@ class lessc {
                $other = array_merge($other, $stack);
 
                if ($split) {
                $other = array_merge($other, $stack);
 
                if ($split) {
-                       return array(array_merge($vars, $imports), $other);
+                       return array(array_merge($imports, $vars), $other);
                } else {
                } else {
-                       return array_merge($vars, $imports, $other);
+                       return array_merge($imports, $vars, $other);
                }
        }
 
                }
        }
 
@@ -1036,7 +1036,7 @@ class lessc {
                                        }
                                }
 
                                        }
                                }
 
-                               if(!is_null($mime)) // fallback if the MIME type is still unknown
+                               if(!is_null($mime)) // fallback if the mime type is still unknown
                                        $url = sprintf('data:%s;base64,%s', $mime, base64_encode(file_get_contents($fullpath)));
                        }
                }
                                        $url = sprintf('data:%s;base64,%s', $mime, base64_encode(file_get_contents($fullpath)));
                        }
                }