Compare commits
No commits in common. "9108dab451e4066a39494f774d4e8543e5ca15b9" and "14e1490a22f1f8766373439bf70fbab8ca26cb60" have entirely different histories.
9108dab451
...
14e1490a22
@ -171,12 +171,6 @@ class ApiUtility
|
|||||||
) {
|
) {
|
||||||
$rowResult[$attributeName] = [];
|
$rowResult[$attributeName] = [];
|
||||||
foreach ($methodResult as $object) {
|
foreach ($methodResult as $object) {
|
||||||
if (!method_exists(
|
|
||||||
$methodResult,
|
|
||||||
'getOriginalResource'
|
|
||||||
)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
$rowResult[$attributeName]
|
$rowResult[$attributeName]
|
||||||
= $this->filereferenceToApi(
|
= $this->filereferenceToApi(
|
||||||
$methodResult->getOriginalResource()
|
$methodResult->getOriginalResource()
|
||||||
|
@ -218,15 +218,12 @@ class MailUtility
|
|||||||
$mail = GeneralUtility::makeInstance(MailMessage::class);
|
$mail = GeneralUtility::makeInstance(MailMessage::class);
|
||||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
||||||
$mail->subject($subject);
|
$mail->subject($subject);
|
||||||
if ($sender) {
|
|
||||||
$mail->from($sender);
|
$mail->from($sender);
|
||||||
}
|
|
||||||
}else {
|
}else {
|
||||||
$mail->setSubject($subject);
|
$mail->setSubject($subject);
|
||||||
if ($sender) {
|
|
||||||
$mail->setFrom($sender);
|
$mail->setFrom($sender);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$bodydataText = [];
|
$bodydataText = [];
|
||||||
$bodydataHtml = [];
|
$bodydataHtml = [];
|
||||||
foreach ($data as $row) {
|
foreach ($data as $row) {
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace Cjel\TemplatesAide\Utility;
|
|
||||||
|
|
||||||
/***
|
|
||||||
*
|
|
||||||
* This file is part of the "Templates Aide" Extension for TYPO3 CMS.
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please read the
|
|
||||||
* LICENSE.txt file that was distributed with this source code.
|
|
||||||
*
|
|
||||||
* filey as part of the extension by 2024 Philipp Dieter <philipp.dieter@attic-media.net>
|
|
||||||
*
|
|
||||||
***/
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
class SessionUtility
|
|
||||||
{
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public static function setSessionValue(
|
|
||||||
$type, $key, $value
|
|
||||||
) {
|
|
||||||
$request = $GLOBALS['TYPO3_REQUEST'];
|
|
||||||
$frontendUser = $request->getAttribute('frontend.user');
|
|
||||||
$frontendUser->setKey($type, $key, $value);
|
|
||||||
$frontendUser->storeSessionData();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public static function getSessionValue(
|
|
||||||
$type, $key
|
|
||||||
) {
|
|
||||||
$request = $GLOBALS['TYPO3_REQUEST'];
|
|
||||||
$frontendUser = $request->getAttribute('frontend.user');
|
|
||||||
return $frontendUser->getKey($type, $key);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user