Problem with replaceGalleryInsertTags
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
}
Re: Problem with replaceGalleryInsertTags
I've corrected this. I was a bit rusty on the insert_tag coding it seems.
Thanks for the Bug Busting!
Just make a repair!
Re: Problem with replaceGalleryInsertTags
Ok, Thanks.
Another Problem was found in german forum:
Change this:
Code:
$GLOBALS['TL_HOOKS']['removeOldFeeds'][] = array('gallery', 'removeOldFeeds');
in this:
Code:
$GLOBALS['TL_HOOKS']['removeOldFeeds'][] = array('Gallery', 'removeOldFeeds');
(Case)
File /system/modules/gallery/config/config.php
Re: Problem with replaceGalleryInsertTags
I've updated that as well. Thanks again. I'm not hearing anything in the English forum, so I'm thinking it's not even being used -- dud release....