Jump to content


Photo

Public skins fail to parse if undocumented rules are not followed


I'm working in developer mode on a custom application, which is why I'm creating a skin file from scratch like this.

In classTemplateEngine.php in the classTemplate class in the _returnFunctionData method, line 298 in unmodified IP.Board 3.2.1, the regex pattern '/^function\s*([\w\_]+)\s*\((.*)\)/i' does not allow whitespace before the function name.

In addition to this whitespace issue, I see later in this function that things will break if I use a different HEREDOC name than EOF or a different return variable name than IPBHTML.

Any chance you could update the skin files doc in the developer resources to include mentions of any special custom requirements for new skin files in developer mode?

Status: Fixed
Version:
Fixed In:


1 Comments