Created
January 7, 2015 10:43
-
-
Save Tuurlijk/8bf1b77f303f44c37bce to your computer and use it in GitHub Desktop.
Disable TYPO3 extension in production environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!empty($_SERVER['CONTEXT'])) { | |
if (TYPO3_MODE == 'FE' && $_SERVER['CONTEXT'] === 'Production') { | |
// Avoid cookie set by session_start in rsaauth | |
if (isset($TYPO3_CONF_VARS['EXT']['ignoredExt'])) { | |
$TYPO3_CONF_VARS['EXT']['ignoredExt'] .= ',rsaauth'; | |
} else { | |
$TYPO3_CONF_VARS['EXT']['ignoredExt'] = 'rsaauth'; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment