From 756171caa1136d070215837590f2a1c409135449 Mon Sep 17 00:00:00 2001 From: Benny Born Date: Tue, 16 Mar 2021 13:37:01 +0100 Subject: [PATCH] Update ContentPanorama.php removed obsolete file inclusion (see #1) --- elements/ContentPanorama.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/elements/ContentPanorama.php b/elements/ContentPanorama.php index 531617f..b22e122 100644 --- a/elements/ContentPanorama.php +++ b/elements/ContentPanorama.php @@ -57,10 +57,6 @@ protected function compile() { $this->Template->showCompass = $this->panorama_compass; // add javascripts and stylesheet to head - if( !is_array($GLOBALS['TL_JAVASCRIPT']) || array_search('system/modules/ce_panorama/assets/libpannellum.js',$GLOBALS['TL_JAVASCRIPT']) === FALSE ) { - $GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/ce_panorama/assets/libpannellum.js'; - } - if( !is_array($GLOBALS['TL_JAVASCRIPT']) || array_search('system/modules/ce_panorama/assets/pannellum.js',$GLOBALS['TL_JAVASCRIPT']) === FALSE ) { $GLOBALS['TL_JAVASCRIPT'][] = 'system/modules/ce_panorama/assets/pannellum.js'; } @@ -76,4 +72,4 @@ protected function compile() { } } } -} \ No newline at end of file +}