{"action":"closed","issue":{"url":"https://api.github.com/repos/smarty-php/smarty/issues/153","labels_url":"https://api.github.com/repos/smarty-php/smarty/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/smarty-php/smarty/issues/153/comments","events_url":"https://api.github.com/repos/smarty-php/smarty/issues/153/events","html_url":"https://github.com/smarty-php/smarty/issues/153","id":125029624,"number":153,"title":"Smarty capture BC break since 3.1.28","user":{"login":"GodLesZ","id":2224893,"avatar_url":"https://avatars.githubusercontent.com/u/2224893?v=3","gravatar_id":"","url":"https://api.github.com/users/GodLesZ","html_url":"https://github.com/GodLesZ","followers_url":"https://api.github.com/users/GodLesZ/followers","following_url":"https://api.github.com/users/GodLesZ/following{/other_user}","gists_url":"https://api.github.com/users/GodLesZ/gists{/gist_id}","starred_url":"https://api.github.com/users/GodLesZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GodLesZ/subscriptions","organizations_url":"https://api.github.com/users/GodLesZ/orgs","repos_url":"https://api.github.com/users/GodLesZ/repos","events_url":"https://api.github.com/users/GodLesZ/events{/privacy}","received_events_url":"https://api.github.com/users/GodLesZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-05T19:04:58Z","updated_at":"2016-01-27T04:22:28Z","closed_at":"2016-01-27T04:22:28Z","body":"Since `3.1.28` Smarty `capture` works different and breaks existing code, again. \r\nAlso happend with `Smarty::getVariable()`, which was marked as deprecated and damaged at the same time (fixed since `3.1.29` but anyways).\r\n\r\n# Example for `capture` problem\r\n\r\n*layout.tpl*\r\n```\r\n{block \"content\"}{/block}\r\n```\r\n\r\n*index.tpl*\r\n```\r\n{block \"content\"}\r\n    {include \"test-plugin.tpl\"}\r\n    {$smarty.capture.plugin}\r\n{/block}\r\n```\r\n\r\n*test-plugin.tpl*\r\n```\r\n{capture \"plugin\"}\r\n    test\r\n{/capture }\r\n```\r\n\r\n*index.php*\r\n```\r\n$smarty->display('extends:layout.tpl|index.tpl');\r\n```\r\n\r\nThe captured content is not available in the index.tpl.\r\nIf I move the `capture` tags to the index.tpl, everything works fine. So it seems to have a local scope to the current template now but no `scope` parameter like the `assign` tag.\r\n\r\nAny chance to get\r\n1. BC in the future? 3.1.*28* is a patch/build number\r\n2. a `scope` parameter or some advice how to accomplish the `capture` usage across multiple templates?"}}