From 520530efb05ff0fbd0927b7080b18a0027629318 Mon Sep 17 00:00:00 2001 From: Hari Karam Singh Date: Tue, 15 Mar 2011 15:44:56 +0000 Subject: [PATCH] Fix require_once causing plugin to only run one time (and not on the article text for K2 items) --- jw_simpleImageGallery.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jw_simpleImageGallery.php b/jw_simpleImageGallery.php index ccbf491..1c6dd6d 100755 --- a/jw_simpleImageGallery.php +++ b/jw_simpleImageGallery.php @@ -29,12 +29,12 @@ class plgContentJw_simpleImageGallery extends JPlugin { // Joomla! 1.5 function onPrepareContent( &$row, &$params, $page=0 ){ - require_once(dirname(__FILE__).DS.'jw_simpleImageGallery_1.5.php'); + include(dirname(__FILE__).DS.'jw_simpleImageGallery_1.5.php'); } // Joomla! 1.6 public function onContentPrepare($context, &$row, &$params, $page = 0){ - require_once(dirname(__FILE__).DS.'jw_simpleImageGallery_1.6.php'); + include(dirname(__FILE__).DS.'jw_simpleImageGallery_1.6.php'); } } // End class -- 1.7.3.3