Download & Extend

generated definition of snippets function is syntactically wrong

Project:Code Snippets
Version:master
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

The 'if' clause is missing braces and a semi-colon. Here's the diff:

Well, no it isn't, the filter completely screws it up. Basically, the code that defines the snippet function needs to go from:

if (!functionexist(fname)) function fname (params) { code }

to

if (!functionexist(fname)) { function fname (params) { code }; }

I'm not a PHP programmer, so there may be a better fix. In particular, it seems like
simply adding the semi-colon after the function def should be sufficient, but it didn't seem to work for me.

Comments

#1

Status:active» closed (won't fix)

Development stopped five years ago. Module obsoleted.

nobody click here