Changeset 115179 in spip-zone
- Timestamp:
- May 2, 2019, 8:14:32 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/scssphp/trunk/scssphp_fonctions.php
r114987 r115179 51 51 // le compilateur Leafo\ScssPhp\Compiler compile le contenu 52 52 $scss = new Compiler($cache_options); 53 $scss->setFormatter("Leafo\ScssPhp\Formatter\Expanded"); 53 54 54 55 // lui transmettre le path qu'il utilise pour les @import … … 103 104 } catch (exception $ex) { 104 105 // en cas d'erreur, on retourne du vide... 105 spip_log('SCSS Compiler fatal error:'.$ex->getMessage(), 'scss '._LOG_ERREUR);106 spip_log('SCSS Compiler fatal error:'.$ex->getMessage(), 'scssphp'._LOG_ERREUR); 106 107 $display_file = ''; 107 108 if (isset($contexte['file'])) { … … 366 367 */ 367 368 function scss_find_scss_or_css_in_path($scss_file, $css_file) { 368 $ l= find_in_path($scss_file);369 $s = find_in_path($scss_file); 369 370 $c = $f = trouver_fond($css_file); 370 371 … … 373 374 } 374 375 375 if (!$ l) {376 if (!$s) { 376 377 return ($f ? produire_fond_statique($css_file, array('format' => 'css')) : $c); 377 378 } elseif (!$c) { 378 return $ l;379 return $s; 379 380 } 380 381 … … 387 388 return ($f ? produire_fond_statique($css_file, array('format'=>'css')) : $c); 388 389 } 389 if ($ l== $dir . $scss_file) {390 return $ l;390 if ($s == $dir . $scss_file) { 391 return $s; 391 392 } 392 393 } 393 394 394 395 // on ne doit jamais arriver la ! 395 spip_log('Resolution chemin scss/css impossible', _LOG_CRITIQUE);396 spip_log('Resolution chemin scss/css impossible', 'scssphp' . _LOG_CRITIQUE); 396 397 debug_print_backtrace(); 397 398 die('Erreur fatale, je suis perdu');
Note: See TracChangeset
for help on using the changeset viewer.