Open aaslun opened 9 years ago
... it's maybe even a bug. I will look into it.
Okey, I think I know what could cause this. I could try to explain it in words but a picture would be better suited to display the process behind this error.... and I don't have time for that :)
I think the problem here is that the current file arguments is stored in a static variable. What puzzles me is that you say that this only happens when the file is included in a child article.... I will investigate some more...
PS. Be aware of the risk of infinite loops when you have a file include that renders another list :)
We're looking at a way to have a file include to represent one or more articles by tags, providing tag-slugs as file arguments. This could be useful at times when no regular editors are in place to update the arlima lists, such as at night time. It could provide an easy way for any author to directly publish articles into an Arlima list without any knowledge of Arlima by simply tagging the article with an agreed tag, letting the file include do the work.
This concept works for top level file includes, but as soon as you place a file include as a child of an article in the list, no arlima_file_args arguments are passed to the php-file and does not seem to execute properly. It also triggers the following warning:
...which is in this function...
Is this something that you think can be fixed by intercepting a filter or action in Arlima or should it be considered a feature request?