2011-02-08, 07:41:57
mvlcek Wrote:jimmivader Wrote:there is same weird conflict with massmailler plugin, when updating or deleting gallery there path are getting messed up
Each plugin should prefix global variables and constants with a plugin specifix string, e.g. $gsgal_path, GSGAL_DATA_PATH. Function names should also include a plugin specific string, e.g. function get_gsgal_galleries(). This would minimize name clashes.
Namespaces could be an alternative also, but I don't know enough about them.
You are correct, and that is how I have most of my stuff.
This is something that we as dev should all adhere, to avoid these common problems. I do know that since I started to develop plugins for getsimple, the constants for paths were not available. But the getsimple devs have been doing a great job at creating new global constants that us (the plugin devs) can use.
@jimmivader I will try to look into this problem, and will see if your fix will indeed resolve the issue without causing other problems. Thanks for the feedback.