{"issue":{"created_at":"2011-11-29T16:17:15Z","state":"closed","updated_at":"2011-11-29T16:17:19Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"comments":3,"body":"The indexer stores wrong page title if pages are indexed which contain insert_article tags, since the called getArticle method changes the global page title and this title remains the same for the next pages to be indexed. So the search result shows a lot of wrong page titles.\nA quick hack I used for this error is this one (in Controller.php) to keep the page title (but I don't know which other side effects this might have...):\n\n```\n    // Insert article\n    case 'insert_article':\n        global $objPage ;\n        $oldTitle = $objPage->pageTitle; # ID\n        $arrCache[$strTag] = $this->replaceInsertTags(ltrim($this->getArticle($elementsr1, false, true)));\n        $objPage->pageTitle = $oldTitle; # ID\n        break\n```\n\n--- _Originally created by anonymous on January 28th, 2009, at 05:00pm (ID 462)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2386672,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/import/labels/Defect"},{"name":"framework","color":"e6e6e6","url":"https://api.github.com/repos/contao/import/labels/framework"}],"number":462,"title":"search engine: wrong page titles","closed_at":"2011-11-29T16:17:19Z","html_url":"https://github.com/contao/import/issues/462","url":"https://api.github.com/repos/contao/import/issues/462","milestone":{"created_at":"2011-11-29T15:29:32Z","state":"closed","closed_issues":1,"due_on":null,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":8,"description":"TYPOlight 2.6.6 (maintenance release)","title":"2.6.6","url":"https://api.github.com/repos/contao/import/milestones/8","open_issues":0}},"action":"closed"}