This page lists the technical changes that may be useful for plugin and theme developpers to make their extension compatible with Piwigo 2.4.
Replace $conf['local_data_dir'] with $conf['data_location'] See http://piwigo.org/forum/viewtopic.php?id=18582 for details
get_mimetype_location (replaces get_thumbnail_location)
how to update your .tpl files :
List of functions available as {$my_derivative→function()} :
List of functions available as template function ie {$pwg→function($NAME, 'src of the original picture')}
There is no longer admin.php?page=cat_modify&cat_id=1234, use instead admin.php?page=album-1234
For admin.php?page=cat_perm&cat=1234, use instead admin.php?page=album-1234-permissions
.thumbnailCategories is renamed into .commentsList
.thumbnailCategory is renamed into .commentElement
Methods pwg.images.resizeThumbnail and pwg.images.resizeWebsize are removed (useless due to multiple size algorithms)
Due to the new “multiple size” feature, Piwigo will no longer use the “thumb” you may send to pwg.images.add. Furthermore, if you provide the “high” version of the photo, Piwigo will no longer use the “file”.
Even if the algorithm has changed in pwg.images.add, it stays fully compatible with remote softwares implementing this method prior to Piwigo 2.4. For example pLoader 1.6 doesn't need to be updated.
To optimize your software using pwg.images.add, you no longer need to send “thumb” and “high” versions of the photos, just send the “file” in the original size (perform a downsize if you want to speed up transfer)
jQuery (1.7.2) is now loaded by default (see themes/default/template/header.tpl) on gallery side.