Fixed bug #10735: Wrong returnUrl with clipboard actions
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tsparser_ext.php
old mode 100755 (executable)
new mode 100644 (file)
index 29e459a..9fbdf79
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2009 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -440,7 +440,7 @@ class t3lib_tsparser_ext extends t3lib_TStemplate   {
                                                        $comment = preg_replace('/[\r\n]/', ' ', $comment);     // Remove linebreaks, replace with ' '
                                                        $comment = preg_replace('/[#\*]{2,}/', '', $comment);   // Remove # and * if more than twice in a row
                                                        $comment = preg_replace('/^[#\*\s]+/', '# ', $comment); // Replace leading # (just if it exists) and add it again. Result: Every comment should be prefixed by a '#'.
-                                                       $comment = $this->makeHtmlspecialchars($comment);       // Masking HTML Tags: Replace < with &lt; and > with &gt; 
+                                                       $comment = $this->makeHtmlspecialchars($comment);       // Masking HTML Tags: Replace < with &lt; and > with &gt;
                                                        $HTML.= ' <span class="comment">'.trim($comment).'</span>';
                                                }
                                        }
@@ -859,6 +859,14 @@ class t3lib_tsparser_ext extends t3lib_TStemplate  {
                                                                                        // label
                                                                                $editableComments[$const]['label'] = trim($keyValPair[1]);
                                                                        break;
+                                                                       case 'customsubcategory':
+                                                                                       // custom subCategory label
+                                                                               $customSubcategory = explode('=',$keyValPair[1],2);
+                                                                               if (trim($customSubcategory[0])) {
+                                                                                       $subCategoryKey = strtolower($customSubcategory[0]);
+                                                                                       $this->subCategories[$subCategoryKey][0] = $GLOBALS['LANG']->sL($customSubcategory[1]);
+                                                                               }
+                                                                       break;
                                                                }
                                                        }
                                                }
@@ -1783,4 +1791,5 @@ class t3lib_tsparser_ext extends t3lib_TStemplate {
 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tsparser_ext.php'])     {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tsparser_ext.php']);
 }
-?>
+
+?>
\ No newline at end of file