{"issue":{"state":"open","created_at":"2011-11-24T11:49:17Z","updated_at":"2011-11-24T11:49:20Z","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":3,"body":"The template rendering got interrupted after inserting a file with {{file::myphpcode.php}}. After that, it only display me the tags, in my case :\n\nenv::page_titlelink_url::21link_url::20link_url::20link_url::26link_url::26link_url::32link_url::32\n\n--- _Originally created by anonymous on August 28th, 2008, at 06:25pm (ID 12)_","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"},"number":12,"id":2340287,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"color":"e6e6e6","name":"backend","url":"https://api.github.com/repos/contao/issues/labels/backend"},{"color":"bd2c00","name":"Defect","url":"https://api.github.com/repos/contao/issues/labels/Defect"}],"title":"replaceInsertTags doesn't seem to work in TypoLight 2.6","closed_at":null,"html_url":"https://github.com/contao/issues/issues/12","milestone":{"state":"open","created_at":"2011-11-24T11:46:50Z","closed_issues":2,"due_on":null,"creator":{"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"},"number":3,"title":"2.6.1","description":"TYPOlight 2.6.1 (maintenance release)","open_issues":1,"url":"https://api.github.com/repos/contao/issues/milestones/3"},"url":"https://api.github.com/repos/contao/issues/issues/12"},"action":"created","comment":{"created_at":"2011-11-24T11:49:20Z","updated_at":"2011-11-24T11:49:20Z","user":{"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"},"body":"It seems that your custom PHP script breaks the \"for\" loop of the controller.\n\n```php\n<?php\n// Inside function replaceInsertTags()\nfor($i=0; $i<count($tags); $i=$i+2)\n{\n    // Replace insert tags here\n}\n?>\n```\n\nNow, if your PHP code uses a \"for\" loop with `$i` as well, it breaks the outer loop of course.\n\nQuick fix: choose another variable in your PHP script (e.g `$j`).\nCore fix: do not use `$i` in the controller loop.\n\n--- _Originally created on August 29th, 2008, at 08:56pm_","id":2861700,"url":"https://api.github.com/repos/contao/issues/issues/comments/2861700"}}