File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,10 @@ public static function get_enabled_snippet_css() {
66
66
global $ DB ;
67
67
68
68
// Compose SQL base query.
69
- $ sql = 'SELECT *
70
- FROM {theme_boost_union_snippets} t
71
- ORDER BY sort ' ;
69
+ $ sql = "SELECT *
70
+ FROM m_theme_boost_union_snippets
71
+ WHERE enabled = '1'
72
+ ORDER BY sortorder " ;
72
73
73
74
// Get records.
74
75
$ data = $ DB ->get_recordset_sql ($ sql );
@@ -77,10 +78,12 @@ public static function get_enabled_snippet_css() {
77
78
78
79
foreach ($ data as $ snippet ) {
79
80
if ($ snippet ->enabled ) {
80
- $ css .= self ::get_snippet ($ snippet ->key , $ snippet ->domain );
81
+ $ css .= self ::get_snippet ($ snippet ->key , $ snippet ->domain )[ ' css ' ] . ' ' ;
81
82
}
82
83
}
83
84
85
+ $ data ->close ();
86
+
84
87
return $ css ;
85
88
}
86
89
}
You can’t perform that action at this time.
0 commit comments