jemproject/JEM-Project — pull request #528 by JKoelman (2014-01-05 11:01:19+00:00)
Title: Update of Event/Mailer/JEM/Script.php + update sql

Event.php
------------------
+ fixed postSaveHook(): $isNew and $id was wrong for new events -> no eMail sent; get data from model instead

Jem.php
--------------
+ renamed 'el*' to 'jem*' (to allow EL and JEM working independent at same site)

Mailer
------------
+ changed "$this->params->get('receivers')" to "$this->_receivers" to allow admin mails to system mail receivers only (empty "receivers" field)
+ completely reworked onEventEdited() and onVenueEdited() to allow new events/venues
(2nd param "edited" is "isNew" by sender (inverse), "$edited" was used multiple times with different meaning - now named $isNew or $modified)
+ _mailer() prepared to use "BCC" instead of "To" - requires new $data->useBCC flag to implement (incl. backend setting)

Script.php
--------------
+ new function deleteObsoleteFiles() to delete all obsolete files and folders, called in preflight()
+ new function updateJemMenuItems195() to increment all catids in menu item params as needed, called in postflight()
+ new function updateJemModules195() to increment all catids in module params as needed, called in postflight()

Update.sql
--------------------
+ on #__menu change link '...&view=myattending' to '...&view=myattendances'
+ on #__menu increment catid on link '...&view=category&id=%'