From c022a0af59a4fea0c01ce9278faef1cd0c4ee0e2 Mon Sep 17 00:00:00 2001 From: Mike Miller Date: Thu, 3 Jan 2013 17:29:36 +0200 Subject: [PATCH] Always add the editcaptured and editcreation CSS files --- 3.0/modules/editcaptured/helpers/editcaptured_theme.php | 8 +------- 3.0/modules/editcreation/helpers/editcreation_theme.php | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/3.0/modules/editcaptured/helpers/editcaptured_theme.php b/3.0/modules/editcaptured/helpers/editcaptured_theme.php index 7458860c..63773b4a 100644 --- a/3.0/modules/editcaptured/helpers/editcaptured_theme.php +++ b/3.0/modules/editcaptured/helpers/editcaptured_theme.php @@ -20,12 +20,6 @@ class editcaptured_theme_Core { static function head($theme) { - if (!$theme->item()) { - return; - } - $item = $theme->item(); - if ( $item && access::can("edit", $item) ) { - $theme->css("editcaptured.css"); - } + $theme->css("editcaptured.css"); } } diff --git a/3.0/modules/editcreation/helpers/editcreation_theme.php b/3.0/modules/editcreation/helpers/editcreation_theme.php index 34bf9b51..8c7b4fa0 100644 --- a/3.0/modules/editcreation/helpers/editcreation_theme.php +++ b/3.0/modules/editcreation/helpers/editcreation_theme.php @@ -20,12 +20,6 @@ class editcreation_theme_Core { static function head($theme) { - if (!$theme->item()) { - return; - } - $item = $theme->item(); - if ( $item && access::can("edit", $item) ) { - return $theme->css("editcreation.css"); - } + return $theme->css("editcreation.css"); } }