PDA

View Full Version : Template export backwards compatibility 1.8 - 1.5.3


darren
09-03-2010, 18:58
I came across a problem trying to export a template from 1.8.2 and import into 1.5.3.

Yes, I know the solution is to upgrade from 1.5.3, unfortunately the server is in a production environment and I don't have immediate access to it.

The root cause is when v1.8 exports a template, it places the "triggers" section before the "items" section. This confuses v1.5.

An easy workaround was to edit the includes/export.inc.php file lines 305 - 336 to output the items first, then the triggers. v1.5 is happy with this. It might be worthwhile to make this change to support backwards compatibility. Probably a low runner though as most people should be on 1.6 at least. We were one of the "early adopters" when 1.5.3 came out in beta.

thanks,
Darren