1414use Symfony \Component \DependencyInjection \Attribute \Autoconfigure ;
1515use TYPO3 \CMS \Core \Cache \CacheManager ;
1616use TYPO3 \CMS \Core \Cache \Exception \NoSuchCacheException ;
17- use TYPO3 \CMS \Core \Cache \Frontend \VariableFrontend ;
1817use TYPO3 \CMS \Core \Configuration \Exception \ExtensionConfigurationExtensionNotConfiguredException ;
1918use TYPO3 \CMS \Core \Configuration \Exception \ExtensionConfigurationPathDoesNotExistException ;
2019use 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