events/ext_localconf.php
Daniel Siepmann 00946af6ad
Properly handle latitude and longitude during Destination One import (#32)
They sometimes use a different separator.
The code is adjusted to always use same separator and precision.

That will prevent the same location from showing up multiple times due
to different latitude and longitude values.
2023-07-06 12:39:47 +02:00

58 lines
2.1 KiB
PHP

<?php
defined('TYPO3') || die('Access denied.');
call_user_func(function () {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Events',
'DateSearch',
[\Wrm\Events\Controller\DateController::class => 'search'],
[\Wrm\Events\Controller\DateController::class => 'search']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Events',
'DateList',
[\Wrm\Events\Controller\DateController::class => 'list'],
[\Wrm\Events\Controller\DateController::class => 'list']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Events',
'DateShow',
[\Wrm\Events\Controller\DateController::class => 'show'],
[\Wrm\Events\Controller\DateController::class => 'show']
);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Events',
'Selected',
[\Wrm\Events\Controller\EventController::class => 'list']
);
if (
isset($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
|| is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category']) === false
) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['events_category'] = [];
}
$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = '^events_search';
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class);
$iconRegistry->registerIcon(
'events-plugin',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:events/Resources/Public/Icons/Extension.svg']
);
$iconRegistry->registerIcon(
'pages-module-events',
\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
['source' => 'EXT:events/Resources/Public/Icons/Folder.svg']
);
\Wrm\Events\Caching\PageCacheTimeout::register();
\Wrm\Events\Updates\MigrateOldLocations::register();
\Wrm\Events\Updates\MigrateDuplicateLocations::register();
});