{"issue":{"created_at":"2011-11-24T12:19:52Z","state":"closed","updated_at":"2011-11-24T12:19:59Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","login":"importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":5,"body":"The new replaceInsertTags hook is great, but I am expecting problems with it. Here's the code:\n\n```\n// HOOK: pass unknown tags to callback functions\ndefault:\n\tif (array_key_exists('replaceInsertTags', $GLOBALS['TL_HOOKS']) && is_array($GLOBALS['TL_HOOKS']['replaceInsertTags']))\n\t{\n\t\tforeach ($GLOBALS['TL_HOOKS']['replaceInsertTags'] as $callback)\n\t\t{\n\t\t\t$this->import($callbackr0);\n\t\t\t$arrCache[$strTag] = $this->$callbackr0->$callbackr1($strTag);\n\t\t}\n\t}\n\tbreak;\n```\n\nIf you have multiple hooks registered, I expect the last hook to replace everything passed before... but chances are high the first hook returns the expected value. we should check if return value is fals or null, and abort _foreach_ if not.\n\n--- _Originally created by andreas.schempp on October 4th, 2008, at 03:06pm (ID 161)_","assignee":{"gravatar_id":"360d94de41513598ac4440d46a3dab1b","id":1192057,"url":"https://api.github.com/users/leofeyer","login":"leofeyer","avatar_url":"https://secure.gravatar.com/avatar/360d94de41513598ac4440d46a3dab1b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2340630,"number":161,"labels":[{"name":"backend","color":"e6e6e6","url":"https://api.github.com/repos/contao/issues/labels/backend"},{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/issues/labels/Defect"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"expecting problem with replaceInsertTags HOOK","closed_at":"2011-11-24T12:19:59Z","html_url":"https://github.com/contao/issues/issues/161","milestone":null,"url":"https://api.github.com/repos/contao/issues/issues/161"},"action":"closed"}