MDL-49518 libraries: Update lessphp to 1.7.0.3
This commit is contained in:
Regular → Executable
+6
-1
@@ -99,7 +99,12 @@ class Less_Exception_Parser extends Exception{
|
||||
*/
|
||||
public function getLineNumber(){
|
||||
if( $this->index ){
|
||||
return substr_count($this->input, "\n", 0, $this->index) + 1;
|
||||
// https://bugs.php.net/bug.php?id=49790
|
||||
if (ini_get("mbstring.func_overload")) {
|
||||
return substr_count(substr($this->input, 0, $this->index), "\n") + 1;
|
||||
} else {
|
||||
return substr_count($this->input, "\n", 0, $this->index) + 1;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user