Disabling render function

Hi,

I’m hoping to make the switch from an ageing ColdFusion implementation to Lucee for one of our projects.

We use a third party library (not coded by us) that uses a user function called “render”.

Running it on CF, it’s fine. On Lucee 5 it crashes because there’s a new in-built function called “render”.

I’d have to go though some hoops to start rewriting the library - the easiest option would be to simply disable the function “render” as we’re very unlikely to ever use it.

Is this possible?

Thanks,
David.

Depends how it’s called. If it is inside a cfc and you are calling like:

var content = render();

you can simply add this. to the start:

var content = this.render();
2 Likes

It is, and of course that works. Thank you.

2 Likes