Skip to content

Commit

Permalink
fix some quirks with recent scss compilation code...scss ONLY availab…
Browse files Browse the repository at this point in the history
…le in bs4 themes (with bs4 stylesheet variable support)
  • Loading branch information
dleffler committed Dec 20, 2017
1 parent c5cb0f4 commit 6932cad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions framework/core/subsystems/expCSS.php
Expand Up @@ -682,11 +682,11 @@ public static function auto_compile_scss($scss_pname, $css_fname, $vars=array())
switch ($scss_compiler) {
case 'scssphp':
default :
//FIXME we need to account for leading _ with filename and missing filetype suffix
if (substr($scss_pname,-5,5) !== ".scss") {
$filename .= ".scss";
$scss_pname .= ".scss";
}

// we need to account for leading _ with filename and missing filetype suffix
if (is_file(BASE . $scss_pname) || is_file(BASE . "_" . $scss_pname)) {
include_once(BASE . 'external/' . $scss_compiler . '/scss.inc.php');
$scss = new \Leafo\ScssPhp\Compiler();
Expand Down
2 changes: 1 addition & 1 deletion framework/core/subsystems/expJavascript.php
Expand Up @@ -306,7 +306,7 @@ public static function parseJSFiles() {
}
} elseif (file_exists(JQUERY_PATH . 'addons/js/' . $mod . '.js')) {
$scripts .= "\t" . '<script type="text/javascript" src="' . JQUERY_RELATIVE . 'addons/js/' . $mod . '.js"></script>' . "\r\n";
if (file_exists(JQUERY_PATH . 'addons/scss/' . $mod . '.scss')) {
if (bs4() && file_exists(JQUERY_PATH . 'addons/scss/' . $mod . '.scss')) {
expCSS::pushToHead(
array(
"scssprimer" => JQUERY_RELATIVE . 'addons/scss/' . $mod . '.scss',
Expand Down

0 comments on commit 6932cad

Please sign in to comment.