We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

update_extension function called twice?

Development and Programming

Cocoaholic's avatar
Cocoaholic
445 posts
17 years ago
Cocoaholic's avatar Cocoaholic

I am aware of that, but my code does prevent the double database entry which was the real problem. Would preventing that second call require an update to EE or are you thinking of some other way to tackle this?

       
Paul Burdick's avatar
Paul Burdick
480 posts
17 years ago
Paul Burdick's avatar Paul Burdick

What I am going to do is update core.extensions.php to have a new class array called $version_numbers. This will be the master array of version numbers for extensions. Whenever an update occurs, whether in core.extension.php or cp.utilities.php, this array will be updated. Prior to doing an update, this is what will be checked. That way, we should be able to make sure we always have the current version number prior to do an update.

       
Paul Burdick's avatar
Paul Burdick
480 posts
17 years ago
Paul Burdick's avatar Paul Burdick

OK, I have tested the changes and committed them, so if you want a copy send me an email (not PM) and I might just answer it.

       
Cocoaholic's avatar
Cocoaholic
445 posts
17 years ago
Cocoaholic's avatar Cocoaholic

Good to hear you fixed it already!

Unfortunately the extension has to work correctly with older versions so I’ll need to use that extra check anyway.

Cheers, Elwin

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.