protected function loadConfiguration()
 {
     $manager = new \TYPO3\CMS\Core\Configuration\ConfigurationManager();
     $path = $manager->getLocalConfigurationFileLocation();
     if (is_readable($path)) {
         $allConfig = $manager->getLocalConfiguration();
         $config = $allConfig['EXT']['extConf']['newsletter'];
     }
     if (!isset($config)) {
         $config = serialize(array('path_to_lynx' => '/usr/bin/lynx', 'replyto_name' => 'John Connor', 'replyto_email' => '*****@*****.**'));
     }
     $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['newsletter'] = $config;
 }
Esempio n. 2
0
 private function loadConfiguration()
 {
     $manager = new \TYPO3\CMS\Core\Configuration\ConfigurationManager();
     $path = $manager->getLocalConfigurationFileLocation();
     if (is_readable($path)) {
         $allConfig = $manager->getLocalConfiguration();
         $config = $allConfig['EXT']['extConf']['newsletter'];
     }
     if (!isset($config)) {
         $config = serialize(array('path_to_lynx' => '/usr/bin/lynx'));
     }
     $GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['newsletter'] = $config;
 }