forked from matoilic/t3chimp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext_localconf.php
25 lines (21 loc) · 932 Bytes
/
ext_localconf.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
if (!defined ('TYPO3_MODE')) die ('Access denied.');
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][$_EXTKEY] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY).'Classes/Hook/Cache.php:&MatoIlic\\T3Chimp\\Hook\\Cache->clearCache';
if (TYPO3_MODE === 'BE' && TYPO3_version >= '4.6.0') {
$extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['t3chimp']);
if($extConf['debug']) {
if (TYPO3_version < '6.0.0') {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['extbase']['commandControllers'][] = 'Tx_T3chimp_Command_MaintenanceCommandController';
}
}
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'MatoIlic.' . $_EXTKEY,
'subscription',
array(
'Subscriptions' => 'index,process,edit'
),
array(
'Subscriptions' => 'process,edit'
)
);