Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_mail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_mail
Commits
ab44931a
Commit
ab44931a
authored
6 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Minor code improvements
parent
94333459
No related branches found
Branches containing commit
Tags
3.5.5
Tags containing commit
1 merge request
!11
Feature security update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Service/RegisterService.php
+4
-5
4 additions, 5 deletions
Classes/Service/RegisterService.php
with
4 additions
and
5 deletions
Classes/Service/RegisterService.php
+
4
−
5
View file @
ab44931a
...
...
@@ -49,7 +49,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
private
$registerArray
=
[];
/**
* Get all registered templates from the cache
* Get all registered templates from the cache
. if the cache expired, the entries are generated
*
* @return array
* @throws \TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException
...
...
@@ -107,7 +107,6 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
}
// read automatically created extension registrations and write the entries
// get the location where automatic registrations should be stored
$configurationLocation
=
$this
->
getRegistrationPath
();
$registerFolder
=
GeneralUtility
::
getFileAbsFileName
(
$configurationLocation
...
...
@@ -176,7 +175,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
$templateDirectoryParts
=
GeneralUtility
::
trimExplode
(
'_'
,
$templateKey
);
$templateDirectory
=
''
;
foreach
(
$templateDirectoryParts
as
$part
)
{
$templateDirectory
.
=
ucfirst
(
$part
);
$templateDirectory
.
=
\
ucfirst
(
$part
);
}
}
...
...
@@ -214,7 +213,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
$tsSettings
=
$typoScriptSettingsService
->
getSettings
(
0
,
'tx_sgmail'
);
// get the location where automatic registrations should be stored
return
'EXT:'
.
$tsSettings
[
'mail'
][
'configurationLocation'
]
.
'/'
.
RegisterService
::
CONFIG_PATH
;
return
'EXT:'
.
$tsSettings
[
'mail'
][
'configurationLocation'
]
.
'/'
.
self
::
CONFIG_PATH
;
}
/**
...
...
@@ -227,7 +226,7 @@ class RegisterService implements \TYPO3\CMS\Core\SingletonInterface {
$cacheManager
=
$objectManager
->
get
(
CacheManager
::
class
);
/** @var FrontendInterface $cache */
$cache
=
$cacheManager
->
getCache
(
RegisterService
::
CACHE_NAME
);
$cache
=
$cacheManager
->
getCache
(
self
::
CACHE_NAME
);
/** @var FrontendInterface $cache */
$cache
->
flush
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment