diff --git a/template.php b/template.php index 392e4be..782448c 100644 --- a/template.php +++ b/template.php @@ -87,9 +87,10 @@ function radix_preprocess_page(&$variables) { $variables['copyright'] = t('Drupal is a registered trademark of Dries Buytaert.'); // Display a message if Sass has not been compiled. - $stylesheet_path = path_to_theme() . '/assets/stylesheets/screen.css'; + $theme_path = drupal_get_path('theme',$GLOBALS['theme']); + $stylesheet_path = $theme_path . '/assets/stylesheets/screen.css'; if (_radix_current_theme() == 'radix') { - $stylesheet_path = path_to_theme() . '/assets/stylesheets/radix-style.css'; + $stylesheet_path = $theme_path . '/assets/stylesheets/radix-style.css'; } if (!file_exists($stylesheet_path)) { drupal_set_message(t('It looks like !path has not been created yet. Run !command in your theme directory to create it.', array(