Upgrade Function Bug?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Upgrade Function Bug?

Post by duclet »

Okay, I read the API doc about the upgrade function and it states that the function should return a message if the upgrade failed and that it shouldn't return anything or FALSE if the upgrade was successful. I did just that and it is not working. When I debug and looked at the code, it seems like what actually happening is the total opposite. If you return FALSE, then the upgrade does not take place (or at least, the database thinks it did not). If you return a message, then the the script thinks the upgrade went smoothly.

So, is this a bug (or more correctly a mis-informed documentation) on how to stop the upgrade of a module or am I missing something here?
Post Reply

Return to “Developers Discussion”