(20:52:13) naderman: nn-:
https://github.com/ur/phpbb3/commit/6e3 ... 1bf6e0a36b
(20:52:57) naderman: although that does not specifically point out what orig_tpl_inherits_id is
(20:53:16) naderman: basically the template engine can be used with a different template than what was loaded
(20:53:35) naderman: and in that case all the template specific info (like storedb, inherits_id, ...) is stored in orig_* variables
(20:54:00) naderman: or not
(20:54:05) naderman: actually I think I am wrong about that too
(20:54:11) naderman: I can't remember what exactly it does
(20:54:12) naderman:

(20:55:51) naderman: nn-: oh now I remember
(20:55:59) naderman: the template engine has some hard coded references to $user
(20:56:10) naderman: but for some stuff you want to ignore the theme_ values in $user
(20:56:14) naderman: so they get overwritten
(20:56:31) naderman: and the orig_ stuff is there to restore those values in $user
(20:56:41) naderman: it's a mess
(20:56:49) naderman: and if done properly those references to $user would just be removed
(20:59:08) nx-: ok, that is a little too much for me at the moment
(20:59:14) nx-: (the commit message)
(20:59:41) naderman: heh yeah
(20:59:47) naderman: it took me forever to figure that out
(20:59:47) naderman:

(20:59:49) nx-: so basically we both concur that it is a mess
(21:00:16) naderman: it is
(21:00:26) nx-: i want to see new template instances created for independent template invocations
(21:00:35) nx-: unless for some reason this is not possible
(21:00:36) naderman: anyway at least now I know it was a good decision to explain that properly when i commited it
(21:00:45) naderman: although adding tests & and some comments wouldn't have hurt
(21:00:55) naderman: nx-: yes absolutely
(21:01:01) naderman: I don't see why not
(21:01:26) naderman: " To make this work the template class now always
(21:01:26) naderman: overwrites $user->theme storedb and inheritance variabbles with orig_tpl_* just
(21:01:26) naderman: before rendering a template in _tpl_load. This way they are guaranteed to always
(21:01:26) naderman: contain the value they had at the time set_template/set_custom_template were
(21:01:26) naderman: called. This fixes [Bug #54505]."
(21:01:31) nx-: In r10150 these orig_tpl_* variables are correctly used to access information about the template of the page being displayed - contrary to the last template used - from within the bbcode, -- wtf
(21:02:03) naderman: lol
(21:02:09) naderman: hmm
(21:02:18) naderman: I guess I was properly confused when I was writing that
(21:02:35) naderman: I think what I meant is:
(21:02:51) igorw: bbcode also needs to fall back to the parents' bbcode.html
(21:03:15) naderman: in r10150 the orig_tpl_* variables are used to access information about the template of the page being displayed. It does not use the values manually overwritten for bbcode, which would be the last template used at that time.
(21:03:57) naderman: yeah I did make quite a few typos etc. there
(21:03:58) naderman: :/
(21:04:12) nx-: i'm not really able to comprehend this at the moment
(21:04:17) naderman: lol
(21:04:29) naderman: yeah, kind of need to look at all those commits to get it I guess
(21:04:30) nx-: naderman, if you feel like at least describing a test case it would be awesome