Feature #13518 » 13518_version_extension.patch
Resources/Private/Language/locallang_emails.xml (revision ) | ||
---|---|---|
User Comment:
|
||
"###COMMENT###"
|
||
Preview:
|
||
###PREVIEW_LINK###
|
||
###SPLITTED_PREVIEW_LINK###
|
||
State was changed by ###USER_FULLNAME### (username: ###USER_USERNAME###)</label>
|
||
</languageKey>
|
||
</data>
|
class.tx_version_tcemain.php (revision ) | ||
---|---|---|
* @return void
|
||
*/
|
||
protected function notifyStageChange(array $stat, $stageId, $table, $id, $comment, t3lib_TCEmain $tcemainObj, $notificationAlternativeRecipients = FALSE) {
|
||
global $TYPO3_CONF_VARS;
|
||
$workspaceRec = t3lib_BEfunc::getRecord('sys_workspace', $stat['uid']);
|
||
// So, if $id is not set, then $table is taken to be the complete element name!
|
||
$elementName = $id ? $table . ':' . $id : $table;
|
||
... | ... | |
'###USER_USERNAME###' => $tcemainObj->BE_USER->user['username']
|
||
);
|
||
// add marker for preview links if workspace extension is loaded
|
||
if (t3lib_extMgm::isLoaded('workspaces')) {
|
||
$this->workspaceService = t3lib_div::makeInstance('tx_Workspaces_Service_Workspaces');
|
||
// only generate the link if the marker is in the template - prevents database from getting to much entries
|
||
if (strpos($emailConfig['message'], '###PREVIEW_LINK###') !== FALSE) {
|
||
$markers['###PREVIEW_LINK###'] = $this->workspaceService->generateWorkspacePreviewLink($elementUid);
|
||
}
|
||
$markers['###SPLITTED_PREVIEW_LINK###'] = $this->workspaceService->generateWorkspaceSplittedPreviewLink($elementUid, TRUE);
|
||
}
|
||
// Hook for preprocessing of the content for formmails:
|
||
if (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['ext/version/class.tx_version_tcemain.php']['notifyStageChange-postModifyMarkers'])) {
|
||
foreach($TYPO3_CONF_VARS['SC_OPTIONS']['ext/version/class.tx_version_tcemain.php']['notifyStageChange-postModifyMarkers'] as $_classRef) {
|
||
$_procObj = &t3lib_div::getUserObj($_classRef);
|
||
$markers = $_procObj->postModifyMarkers($markers, $this);
|
||
}
|
||
}
|
||
// sending the emails the old way with sprintf(),
|
||
// because it was set explicitly in TSconfig
|
||
if ($emailMessage && $emailSubject) {
|