EXTMVC:
authorJochen Rau <j.rau@web.de>
Fri, 20 Mar 2009 18:53:04 +0000 (18:53 +0000)
committerJochen Rau <j.rau@web.de>
Fri, 20 Mar 2009 18:53:04 +0000 (18:53 +0000)
* Fixed initialization of $additionalHeaderData

typo3/sysext/extbase/Classes/Persistence/Mapper/TX_EXTMVC_Persistence_Mapper_ObjectRelationalMapper.php
typo3/sysext/extbase/Classes/View/Helper/TX_EXTMVC_View_Helper_LinkHelper.php
typo3/sysext/extbase/Classes/Web/TX_EXTMVC_Web_Response.php
typo3/sysext/extbase/class.tx_extmvc_dispatcher.php

index ab76113..f2badea 100644 (file)
@@ -73,6 +73,7 @@ class TX_EXTMVC_Persistence_Mapper_ObjectRelationalMapper implements t3lib_Singl
         * @return void
         */
        public function findWhere($className, $where = '1=1') {
+               // TODO check PID for records
                $dataMap = $this->getDataMap($className);
                // SK: Support for GroupBy, OrderBy, Limit!
                $rows = $this->fetch($dataMap, $where);
index 4ccdce8..ee54661 100644 (file)
@@ -72,6 +72,7 @@ class TX_EXTMVC_View_Helper_LinkHelper extends TX_EXTMVC_View_Helper_AbstractHel
                        }
                }
                
+               
                $linkText = $view->renderTemplate($templateResource, $variables);
 
                $parameters = is_array($parameters) ? t3lib_div::implodeArrayForUrl('', $parameters, '', 1) : '';
index b8c6b0d..a906742 100755 (executable)
@@ -38,8 +38,7 @@ class TX_EXTMVC_Web_Response extends TX_EXTMVC_Response {
         *
         * @var array
         */
-       // SK: To be discussed: Is additionalHeaderData a better name?
-       protected $additionalHeaderTags = array();
+       protected $additionalHeaderData = array();
 
        /**
         * The HTTP status code
index bd71f52..e0ab954 100644 (file)
@@ -133,8 +133,10 @@ class TX_EXTMVC_Dispatcher {
                }
                $session->commit();
                $session->clear();
-
-               $GLOBALS['TSFE']->additionalHeaderData[$request->getControllerExtensionKey()] = implode("\n", $response->getAdditionalHeaderData());
+               
+               if (count($response->getAdditionalHeaderData()) > 0) {
+                       $GLOBALS['TSFE']->additionalHeaderData[$request->getControllerExtensionKey()] = implode("\n", $response->getAdditionalHeaderData());
+               }
 
                // TODO Remove debug statements
                // $end_time = microtime(TRUE);