News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Rename the $func variable in SMF code (maybe just SSI.php?)

Started by Neol, March 06, 2007, 01:45:56 PM

Previous topic - Next topic

Neol

Request to the devs:

Please change the (very generic) name for the $func variable in SSI.php, and possibly in other files too.

When SMF is integrated in Joomla and other CMS's, presence of $func causes variable name conflicts with other variables with the same name in CMS modules.

Probably just renaming the variable to $smf_func would help a lot!

EDIT: Here's a frequent example reply by Orstio:
http://www.simplemachines.org/community/index.php?topic=140350.msg895868#msg895868

codenaught

This has been renamed to $smfFunc in the SMF Development Edition.
Dev Consultant
Former SMF Doc Coordinator

Neol

Perfect! Will the next public version of SMF reflect the change?

codenaught

Well it won't make it into the SMF 1.1 branch I am afraid.
Dev Consultant
Former SMF Doc Coordinator

Advertisement: