Skip to content

Commit

Permalink
fix composing css
Browse files Browse the repository at this point in the history
  • Loading branch information
Menrath committed Sep 4, 2024
1 parent fa6eb8a commit 1072cf7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions classes/snippets.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ public static function get_enabled_snippet_css() {
global $DB;

// Compose SQL base query.
$sql = 'SELECT *
FROM {theme_boost_union_snippets} t
ORDER BY sort';
$sql = "SELECT *
FROM m_theme_boost_union_snippets
WHERE enabled = '1'
ORDER BY sortorder";

// Get records.
$data = $DB->get_recordset_sql($sql);
Expand All @@ -77,10 +78,12 @@ public static function get_enabled_snippet_css() {

foreach ($data as $snippet) {
if ($snippet->enabled) {
$css .= self::get_snippet($snippet->key, $snippet->domain);
$css .= self::get_snippet($snippet->key, $snippet->domain)['css'] . ' ';
}
}

$data->close();

return $css;
}
}

0 comments on commit 1072cf7

Please sign in to comment.