This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
FS#2365 common.php: function doesn't use function argument
The function 'script()' in 'inc/common.php', line 503, probably obsolete anyway (just as its comment says), can't return the expected value if anything else than its function argument's default value is supplied. So it should either be fixed or removed, so as to not lead to errors if someone tries to use it with other arguments.
It's not obsolete, at least it's used in some plugins (including core plugins: config and popularity). I'd disagree that it's broken. It wouldn't necessarily lead to errors (depending on what you expect to happen and what other things you have changed).
I think we should deprecate that parameter (I haven't seen it in use so far) and remove it later accordingly.
I removed the parameter in 25ca5b17 (no need to have it there, php function can be called with more parameters than needed without any errors).