38c38
<   global $theme_info;
---
>   global $theme_info, $base_theme_info;
45a46,58
>   
>   # Gather stylesheets from the active theme and the all basethemes
>   if(array_key_exists('all', $theme_info->stylesheets)){
>     $stylesheets = $theme_info->stylesheets['all'];  
>   }else{
>     $stylesheets = array();
>   }
>   
>   foreach($base_theme_info as $basetheme){
>     if(array_key_exists('all', $basetheme->stylesheets)){
>       $stylesheets = array_merge($basetheme->stylesheets['all'], $stylesheets);
>     }
>   }
51c64
<   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) {
57c70
<     foreach ($theme_info->stylesheets['all'] as $stylesheet) {
---
>     foreach ($stylesheets as $stylesheet) {
