summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lightbox2.module14
1 files changed, 2 insertions, 12 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 77b90af..7783727 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -497,12 +497,7 @@ function lightbox2_add_files() {
if (variable_get('lightbox2_use_alt_layout', false)) {
$css = $path .'/css/lightbox_alt.css';
}
- if (function_exists('drupal_add_css')) {
- drupal_add_css($css);
- }
- else {
- theme('add_style', $css);
- }
+ drupal_add_css($css);
// Check to see if the Image Node Option is enabled in settings.
if (variable_get('lightbox2_image_node', true) || variable_get('lightbox2_flickr', true) || variable_get('lightbox2_inline', true) || variable_get('lightbox2_custom_trigger_classes', '') != '') {
@@ -514,12 +509,7 @@ function lightbox2_add_files() {
// Lightbox Lite.
else {
$css = $path .'/css/lightbox_lite.css';
- if (function_exists('drupal_add_css')) {
- drupal_add_css($css);
- }
- else {
- theme('add_style', $css);
- }
+ drupal_add_css($css);
drupal_add_js($path .'/js/lightbox_lite.js', 'module', $js_location);
}
}