Skip to content

Commit 2de9c99

Browse files
committed
Fix typos
1 parent 49e0834 commit 2de9c99

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ public/
33
vendor/
44
var/
55
.phpunit.result.cache
6+
.idea/

Classes/ViewHelpers/RenderIncludeViewHelper.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Symfony\Component\DependencyInjection\Attribute\Autoconfigure;
1515
use TYPO3\CMS\Core\Cache\CacheManager;
1616
use TYPO3\CMS\Core\Cache\Exception\NoSuchCacheException;
17-
use TYPO3\CMS\Core\Cache\Frontend\VariableFrontend;
1817
use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException;
1918
use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationPathDoesNotExistException;
2019
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
@@ -103,7 +102,7 @@ public function renderNonStatic(?array $arguments = null, ?Closure $renderChildr
103102
$groupString = '_' . implode('-', $frontendUser->getGroupIds());
104103
}
105104

106-
$filename = $this->getSiteName() . '_' . $this->getLangauge() . '_' . $name . $groupString . '.html';
105+
$filename = $this->getSiteName() . '_' . $this->getLanguage() . '_' . $name . $groupString . '.html';
107106

108107
// If the cache has not the proper entry, generate it
109108
$cache = $this->cacheManager->getCache('aus_ssi_include_cache');
@@ -120,7 +119,7 @@ public function renderNonStatic(?array $arguments = null, ?Closure $renderChildr
120119
$this->lastRenderedContentRegister->set($name, $html);
121120
}
122121

123-
// generate the variables needed for include commments
122+
// generate the variables needed for include comments
124123
$reqUrl = $this->filenameUtility->getReqUrl($filename);
125124
$method = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('ssi_include', 'method');
126125
if ($method === self::METHOD_ESI) {
@@ -146,7 +145,7 @@ private function validateName(array $arguments): string
146145
/**
147146
* @throws AspectNotFoundException
148147
*/
149-
protected function getLangauge(): int
148+
protected function getLanguage(): int
150149
{
151150
return $this->context->getPropertyFromAspect('language', 'id');
152151
}

0 commit comments

Comments
 (0)