38c38
<   global $theme_info;
---
>   global $theme_info, $base_theme_info;
46c46,61
< 
---
>   
>   # Gather all stylesheets from the active theme and the all basethemes
>   $stylesheets = array();
>   
>   //First gather stylesheets from all base themes
>   foreach($base_theme_info as $basetheme){
>     foreach($basetheme->stylesheets as $stylesheetgroup){
>       $stylesheets = array_merge($stylesheets, $stylesheetgroup);
>     }
>   }
>   
>   //Second add stylesheets of active theme
>   foreach($theme_info->stylesheets as $stylesheetgroup){
>       $stylesheets = array_merge($stylesheets, $stylesheetgroup);
>   }
>   
51c66
<   if (file_exists($sassparser_path) && isset($theme_info->stylesheets['all']) && count($theme_info->stylesheets['all']) > 0) {
---
>   if (file_exists($sassparser_path) && isset($stylesheets) && count($stylesheets) > 0) {
57c72
<     foreach ($theme_info->stylesheets['all'] as $stylesheet) {
---
>     foreach ($stylesheets as $stylesheet) {
\ No newline at end of file
