Closed (won't fix)
Project:
Code Snippets
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2005 at 21:21 UTC
Updated:
28 Nov 2010 at 22:19 UTC
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
Comment #1
axel commentedDevelopment stopped five years ago. Module obsoleted.