I have a big problem with Contao_gallery_80009_17.zip.
Method "replaceGalleryInsertTags" has a bug, it is missing there the "return false", if the insert tag is not for this method.
The chain of processing with other modules is interrupted!
Here the new code, look for "return false; //not for me"
Code:public function replaceGalleryInsertTags($strTag) { $elements = explode('::', $strTag); if (strtolower($elements[0]) == 'insert_gallery' && intval($elements[1]) && intval($elements[2])) { $intId = $elements[1]; $modId = $elements[2]; // Generate module $objModule = $this->Database->prepare("SELECT * FROM tl_module WHERE id=?") ->limit(1) ->execute($modId); if ($objModule->numRows) { $objModule = new ModuleGallerySingle($objModule); $objModule->gallery = $intId; $strBuffer = $objModule->generate(); return $strBuffer; } } return false; //not for me }
Bookmarks