Implemented minor fix in EventController: the event templateRootPath, layoutRootPath...
authorjdegroot <jdegroot@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 5 Oct 2012 14:05:26 +0000 (14:05 +0000)
committerjdegroot <jdegroot@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 5 Oct 2012 14:05:26 +0000 (14:05 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/roq_newsevent/trunk@66660 735d13b6-9817-0410-8766-e36946ffe9aa

Classes/Controller/EventController.php

index 5fcf795..bac207a 100644 (file)
@@ -58,7 +58,7 @@ class Tx_RoqNewsevent_Controller_EventController extends Tx_News_Controller_News
         foreach($GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['switchableControllerActions']['newItems'] as $switchableControllerActions => $value) {
             $action = str_replace('News->', '', $switchableControllerActions);
 
-            if($action == $controllerConfigurationAction) {
+            if(strpos($action,$controllerConfigurationAction) !== FALSE) {
                 // the current controller configuration action matches with one of the event controller actions: set event view configuration
                 $this->setEventViewConfiguration($view);
             }