From fc971e6d3eb54dff3d3eba4734ff207d37cb4e0e Mon Sep 17 00:00:00 2001 From: josh Date: Wed, 27 May 2015 11:50:32 -0600 Subject: [PATCH] 1.7.04 --- lib/Less/Tree/Import.php | 8 ++++++-- lib/Less/Version.php | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/Less/Tree/Import.php b/lib/Less/Tree/Import.php index a87c2048..e327b756 100755 --- a/lib/Less/Tree/Import.php +++ b/lib/Less/Tree/Import.php @@ -233,9 +233,13 @@ public function PathAndUri(){ } }elseif( !empty($rootpath) ){ - if( strpos($evald_path,$rooturi) === 0 ){ - $evald_path = substr( $evald_path, strlen($rooturi) ); + + if( $rooturi ){ + if( strpos($evald_path,$rooturi) === 0 ){ + $evald_path = substr( $evald_path, strlen($rooturi) ); + } } + $path = rtrim($rootpath,'/\\').'/'.ltrim($evald_path,'/\\'); if( file_exists($path) ){ diff --git a/lib/Less/Version.php b/lib/Less/Version.php index 1e954333..99a45857 100755 --- a/lib/Less/Version.php +++ b/lib/Less/Version.php @@ -8,7 +8,7 @@ */ class Less_Version{ - const version = '1.7.0.3'; // The current build number of less.php + const version = '1.7.0.4'; // The current build number of less.php const less_version = '1.7'; // The less.js version that this build should be compatible with const cache_version = '170'; // The parser cache version