Changeset 113845 in spip-zone
- Timestamp:
- Feb 11, 2019, 10:09:58 AM (2 years ago)
- Location:
- _plugins_/less-css/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/less-css/trunk/lesscss_fonctions.php
r113474 r113845 137 137 } 138 138 139 if ($files = Less_Parser::AllParsedFiles()140 AND count($files)){141 142 $l = strlen(_DIR_RACINE);143 foreach($files as $k=>$file){144 if (strncmp($file,_DIR_RACINE,$l)==0){145 $files[$k] = substr($file,$l);146 }147 }148 $out = "/*\n#@".implode("\n#@",$files)."\n*"."/\n" . $out;149 }150 151 return $out;152 139 } 153 140 // en cas d'erreur, on retourne du vide... 154 141 catch (exception $ex) { 155 spip_log('less.php fatal error:'.$ex->getMessage(),'less'._LOG_ERREUR); 142 spip_log($e = 'LESS Echec compilation :'.$ex->getMessage(),'less'._LOG_ERREUR); 143 $out = "/* LESS Echec compilation *"."/\n"; 156 144 erreur_squelette( 157 145 "LESS : Echec compilation" … … 159 147 . "<br />".$ex->getMessage() 160 148 ); 161 return ''; 162 } 149 } 150 151 if ($files = Less_Parser::AllParsedFiles() 152 AND count($files)){ 153 154 $l = strlen(_DIR_RACINE); 155 foreach($files as $k=>$file){ 156 if (strncmp($file,_DIR_RACINE,$l)==0){ 157 $files[$k] = substr($file,$l); 158 } 159 } 160 $out = "/*\n#@".implode("\n#@",$files)."\n*"."/\n" . $out; 161 } 162 163 return $out; 163 164 } 164 165 -
_plugins_/less-css/trunk/paquet.xml
r113474 r113845 2 2 prefix="lesscss" 3 3 categorie="outil" 4 version="1.4. 1"4 version="1.4.2" 5 5 etat="stable" 6 6 compatibilite="[3.0.0;3.2.*]"
Note: See TracChangeset
for help on using the changeset viewer.