@@ -117,7 +117,7 @@
-
+
Index: branches/5.2.x/core/kernel/constants.php
===================================================================
diff -u -N -r15590 -r15608
--- branches/5.2.x/core/kernel/constants.php (.../constants.php) (revision 15590)
+++ branches/5.2.x/core/kernel/constants.php (.../constants.php) (revision 15608)
@@ -1,6 +1,6 @@
$notification_email,
);
- $this->Application->EmailEventAdmin('SYSTEM.LOG.NOTIFY', null, $send_params);
+ $this->Application->emailAdmin('SYSTEM.LOG.NOTIFY', null, $send_params);
$this->Application->removeObject($event->Prefix . '.email');
$object = $event->getObject(Array ('skip_autoload' => true));
Index: branches/5.2.x/core/kernel/db/cat_event_handler.php
===================================================================
diff -u -N -r15563 -r15608
--- branches/5.2.x/core/kernel/db/cat_event_handler.php (.../cat_event_handler.php) (revision 15563)
+++ branches/5.2.x/core/kernel/db/cat_event_handler.php (.../cat_event_handler.php) (revision 15608)
@@ -1,6 +1,6 @@
Name ) {
case 'OnCreate':
$event_suffix = $is_active ? 'ADD' : 'ADD.PENDING';
- $this->Application->EmailEventAdmin($perm_prefix . '.' . $event_suffix); // there are no ADD.PENDING event for admin :(
- $this->Application->EmailEventUser($perm_prefix . '.' . $event_suffix, $owner_id);
+ $this->Application->emailAdmin($perm_prefix . '.' . $event_suffix); // there are no ADD.PENDING event for admin :(
+ $this->Application->emailUser($perm_prefix . '.' . $event_suffix, $owner_id);
break;
case 'OnUpdate':
$event_suffix = $is_active ? 'MODIFY' : 'MODIFY.PENDING';
$user_id = is_numeric($object->GetDBField('ModifiedById')) ? $object->GetDBField('ModifiedById') : $owner_id;
- $this->Application->EmailEventAdmin($perm_prefix . '.' . $event_suffix); // there are no ADD.PENDING event for admin :(
- $this->Application->EmailEventUser($perm_prefix . '.' . $event_suffix, $user_id);
+ $this->Application->emailAdmin($perm_prefix . '.' . $event_suffix); // there are no ADD.PENDING event for admin :(
+ $this->Application->emailUser($perm_prefix . '.' . $event_suffix, $user_id);
break;
}
}
Index: branches/5.2.x/core/units/spam_reports/spam_report_eh.php
===================================================================
diff -u -N -r15165 -r15608
--- branches/5.2.x/core/units/spam_reports/spam_report_eh.php (.../spam_report_eh.php) (revision 15165)
+++ branches/5.2.x/core/units/spam_reports/spam_report_eh.php (.../spam_report_eh.php) (revision 15608)
@@ -1,6 +1,6 @@
SetDBField('ItemName', $item->GetDBField('ReviewText'));
}
- $this->Application->EmailEventAdmin('SPAM.REPORT');
+ $this->Application->emailAdmin('SPAM.REPORT');
}
/**
Index: branches/5.2.x/core/admin_templates/logs/email_logs/email_log_edit.tpl
===================================================================
diff -u -N -r15414 -r15608
--- branches/5.2.x/core/admin_templates/logs/email_logs/email_log_edit.tpl (.../email_log_edit.tpl) (revision 15414)
+++ branches/5.2.x/core/admin_templates/logs/email_logs/email_log_edit.tpl (.../email_log_edit.tpl) (revision 15608)
@@ -48,8 +48,8 @@
-
+
\ No newline at end of file
Index: branches/5.2.x/core/admin_templates/languages/email_message_list.tpl
===================================================================
diff -u -N -r15542 -r15608
--- branches/5.2.x/core/admin_templates/languages/email_message_list.tpl (.../email_message_list.tpl) (revision 15542)
+++ branches/5.2.x/core/admin_templates/languages/email_message_list.tpl (.../email_template_list.tpl) (revision 15608)
@@ -1,6 +1,6 @@
-
+
@@ -86,8 +86,8 @@
-
+
\ No newline at end of file
Index: branches/5.2.x/core/install/remove_schema.sql
===================================================================
diff -u -N -r15552 -r15608
--- branches/5.2.x/core/install/remove_schema.sql (.../remove_schema.sql) (revision 15552)
+++ branches/5.2.x/core/install/remove_schema.sql (.../remove_schema.sql) (revision 15608)
@@ -3,7 +3,7 @@
DROP TABLE CustomFields;
DROP TABLE SystemSettings;
DROP TABLE EmailQueue;
-DROP TABLE EmailEvents;
+DROP TABLE EmailTemplates;
DROP TABLE SystemEventSubscriptions;
DROP TABLE IdGenerator;
DROP TABLE Languages;
Index: branches/5.2.x/core/install/upgrades.sql
===================================================================
diff -u -N -r15602 -r15608
--- branches/5.2.x/core/install/upgrades.sql (.../upgrades.sql) (revision 15602)
+++ branches/5.2.x/core/install/upgrades.sql (.../upgrades.sql) (revision 15608)
@@ -2863,3 +2863,16 @@
INSERT INTO SystemSettings VALUES(DEFAULT, 'TypeKitId', '', 'In-Portal', 'in-portal:configure_advanced', 'la_section_Settings3rdPartyAPI', 'la_config_TypeKitId', 'text', NULL, NULL, 80.05, 0, 1, NULL);
ALTER TABLE MailingLists CHANGE EmailsQueued EmailsQueuedTotal INT(10) UNSIGNED NOT NULL DEFAULT '0';
+
+RENAME TABLE <%TABLE_PREFIX%>EmailEvents TO <%TABLE_PREFIX%>EmailTemplates;
+ALTER TABLE EmailTemplates CHANGE `Event` TemplateName VARCHAR(40) NOT NULL DEFAULT '';
+ALTER TABLE EmailTemplates CHANGE EventId TemplateId INT(11) NOT NULL AUTO_INCREMENT;
+ALTER TABLE SystemEventSubscriptions CHANGE EmailEventId EmailTemplateId INT(11) NULL DEFAULT NULL;
+
+DELETE FROM LanguageLabels WHERE PhraseKey IN (
+ 'LA_FLD_EXPORTEMAILEVENTS', 'LA_FLD_EVENT', 'LA_TITLE_EMAILMESSAGES', 'LA_TAB_E-MAILS', 'LA_COL_EMAILEVENTS',
+ 'LA_OPT_EMAILEVENTS', 'LA_FLD_EMAILEVENT', 'LA_TITLE_EMAILEVENTS', 'LA_TITLE_ADDING_E-MAIL', 'LA_TITLE_EDITING_E-MAIL',
+ 'LA_TITLE_EDITINGEMAILEVENT', 'LA_TITLE_NEWEMAILEVENT', 'LA_TAB_EMAILEVENTS'
+);
+DELETE FROM UserPersistentSessionData WHERE VariableName IN ('system-event-subscription[Default]columns_.', 'email-log[Default]columns_.');
+ALTER TABLE EmailLog CHANGE EventName TemplateName VARCHAR(255) NOT NULL DEFAULT '';
Index: branches/5.2.x/core/admin_templates/incs/form_blocks.tpl
===================================================================
diff -u -N -r15541 -r15608
--- branches/5.2.x/core/admin_templates/incs/form_blocks.tpl (.../form_blocks.tpl) (revision 15541)
+++ branches/5.2.x/core/admin_templates/incs/form_blocks.tpl (.../form_blocks.tpl) (revision 15608)
@@ -731,7 +731,7 @@
-
+
-
+
-
-
+
+
-
+
\ No newline at end of file