[TASK] Fix CGL violations against DoubleQuoteUsage
authorLudwig Rafelsberger <ludwig.rafelsberger@gmx.at>
Wed, 13 Jun 2012 23:06:55 +0000 (01:06 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 14 Jun 2012 20:47:16 +0000 (22:47 +0200)
Some violations against other CGL rules have been fixed as well.

Change-Id: I952218d140f559d0d90d4fc070f8de5820134461
Resolves: #38027
Releases: 6.0
Reviewed-on: http://review.typo3.org/12041
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Oliver Klee
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/tstemplate_objbrowser/class.tx_tstemplateobjbrowser.php

index 492efd1..c13b52f 100644 (file)
@@ -39,8 +39,8 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
        function init(&$pObj, $conf) {
                parent::init($pObj, $conf);
 
-               $this->pObj->modMenu_dontValidateList.= ',ts_browser_toplevel_setup,ts_browser_toplevel_const,ts_browser_TLKeys_setup,ts_browser_TLKeys_const';
-               $this->pObj->modMenu_setDefaultList.= ',ts_browser_fixedLgd,ts_browser_showComments';
+               $this->pObj->modMenu_dontValidateList .= ',ts_browser_toplevel_setup,ts_browser_toplevel_const,ts_browser_TLKeys_setup,ts_browser_TLKeys_const';
+               $this->pObj->modMenu_setDefaultList .= ',ts_browser_fixedLgd,ts_browser_showComments';
        }
 
        function modMenu() {
@@ -75,9 +75,9 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                        if (is_array($addKey))  {               // If any plus-signs were clicked, it's registred.
                                reset($addKey);
                                if (current($addKey)) {
-                                       $this->pObj->MOD_SETTINGS['ts_browser_TLKeys_'.$bType][key($addKey)] = key($addKey);
+                                       $this->pObj->MOD_SETTINGS['ts_browser_TLKeys_' . $bType][key($addKey)] = key($addKey);
                                } else {
-                                       unset($this->pObj->MOD_SETTINGS['ts_browser_TLKeys_'.$bType][key($addKey)]);
+                                       unset($this->pObj->MOD_SETTINGS['ts_browser_TLKeys_' . $bType][key($addKey)]);
                                }
                                $GLOBALS['BE_USER']->pushModuleData($this->pObj->MCONF['name'], $this->pObj->MOD_SETTINGS);
                        }
@@ -101,41 +101,41 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
         */
        function verify_TSobjects($propertyArray, $parentType, $parentValue) {
                $TSobjTable = array(
-                       "PAGE" => array(
-                               "prop" => array (
-                                       "typeNum" => "int",
-                                       "1,2,3" => "COBJ",
-                                       "bodyTag" => "string"
+                       'PAGE' => array(
+                               'prop' => array (
+                                       'typeNum' => 'int',
+                                       '1,2,3' => 'COBJ',
+                                       'bodyTag' => 'string'
                                )
                        ),
-                       "TEXT" => array(
-                               "prop" => array (
-                                       "value" => "string"
+                       'TEXT' => array(
+                               'prop' => array (
+                                       'value' => 'string'
                                )
                        ),
-                       "HTML" => array(
-                               "prop" => array (
-                                       "value" => "stdWrap"
+                       'HTML' => array(
+                               'prop' => array (
+                                       'value' => 'stdWrap'
                                )
                        ),
-                       "stdWrap" => array(
-                               "prop" => array (
-                                       "field" => "string",
-                                       "current" => "boolean"
+                       'stdWrap' => array(
+                               'prop' => array (
+                                       'field' => 'string',
+                                       'current' => 'boolean'
                                )
                        ),
                );
                $TSobjDataTypes = array(
-                       "COBJ" => "TEXT,CONTENT",
-                       "PAGE" => "PAGE",
-                       "stdWrap" => ""
+                       'COBJ' => 'TEXT,CONTENT',
+                       'PAGE' => 'PAGE',
+                       'stdWrap' => ''
                );
 
                if ($parentType) {
                        if (isset($TSobjDataTypes[$parentType]) && (!$TSobjDataTypes[$parentType] || t3lib_div::inlist($TSobjDataTypes[$parentType], $parentValue))) {
                                $ObjectKind = $parentValue;
                        } else {
-                               $ObjectKind = "";       // Object kind is "" if it should be known.
+                               $ObjectKind = '';       // Object kind is "" if it should be known.
                        }
                } else {
                        $ObjectKind = $parentValue;     // If parentType is not given, then it can be anything. Free.
@@ -146,9 +146,9 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                        if (is_array($propertyArray))           {
                                foreach ($propertyArray as $key => $val) {
                                        if (t3lib_utility_Math::canBeInterpretedAsInteger($key))        {       // If num-arrays
-                                               $result[$key]=$TSobjTable[$ObjectKind]["prop"]["1,2,3"];
+                                               $result[$key] = $TSobjTable[$ObjectKind]['prop']['1,2,3'];
                                        } else {        // standard
-                                               $result[$key]=$TSobjTable[$ObjectKind]["prop"][$key];
+                                               $result[$key] = $TSobjTable[$ObjectKind]['prop'][$key];
                                        }
                                }
                        }
@@ -167,12 +167,12 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                        // Initializes the module. Done in this function because we may need to re-initialize if data is submitted!
                global $tmpl,$tplRow,$theConstants;
 
-               $tmpl = t3lib_div::makeInstance("t3lib_tsparser_ext");  // Defined global here!
+               $tmpl = t3lib_div::makeInstance('t3lib_tsparser_ext');  // Defined global here!
                $tmpl->tt_track = 0;    // Do not log time-performance information
                $tmpl->init();
 
                                // Gets the rootLine
-               $sys_page = t3lib_div::makeInstance("t3lib_pageSelect");
+               $sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
                $rootLine = $sys_page->getRootLine($pageId);
                $tmpl->runThroughTemplates($rootLine, $template_uid);   // This generates the constants/config + hierarchy info for the template.
 
@@ -199,7 +199,7 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                $manyTemplatesMenu = $this->pObj->templateMenu();
                $template_uid = 0;
                if ($manyTemplatesMenu) {
-                       $template_uid = $this->pObj->MOD_SETTINGS["templatesOnPage"];
+                       $template_uid = $this->pObj->MOD_SETTINGS['templatesOnPage'];
                }
 
 
@@ -211,31 +211,31 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                // **************************
 
                // BUGBUG: Should we check if the uset may at all read and write template-records???
-               $bType= $this->pObj->MOD_SETTINGS["ts_browser_type"];
+               $bType= $this->pObj->MOD_SETTINGS['ts_browser_type'];
                $existTemplate = $this->initialize_editor($this->pObj->id, $template_uid);              // initialize
                if ($existTemplate) {
                        $theOutput .= $this->pObj->doc->section(
                                $GLOBALS['LANG']->getLL('currentTemplate'),
                                ' <img ' . t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'], t3lib_iconWorks::getIcon('sys_template', $tplRow)) . ' align="top" /> <strong>' .
-                                       $this->pObj->linkWrapTemplateTitle($tplRow["title"], ($bType == "setup" ? "config" : "constants")) . '</strong>' .
-                                       htmlspecialchars(trim($tplRow["sitetitle"]) ? ' (' . $tplRow["sitetitle"] . ')' : '')
+                                       $this->pObj->linkWrapTemplateTitle($tplRow['title'], ($bType == 'setup' ? 'config' : 'constants')) . '</strong>' .
+                                       htmlspecialchars(trim($tplRow['sitetitle']) ? ' (' . $tplRow['sitetitle'] . ')' : '')
                        );
                        if ($manyTemplatesMenu) {
-                               $theOutput.=$this->pObj->doc->section("", $manyTemplatesMenu);
+                               $theOutput.=$this->pObj->doc->section('', $manyTemplatesMenu);
                        }
                        $theOutput .= $this->pObj->doc->spacer(10);
 
-                       if ($POST["add_property"] || $POST["update_value"] || $POST["clear_object"]) {
+                       if ($POST['add_property'] || $POST['update_value'] || $POST['clear_object']) {
                                        // add property
-                               $line="";
-                               if (is_array($POST["data"])) {
-                                       $name = key($POST["data"]);
-                                       if ($POST['data'][$name]['name']!=='') {
+                               $line = '';
+                               if (is_array($POST['data'])) {
+                                       $name = key($POST['data']);
+                                       if ($POST['data'][$name]['name'] !== '') {
                                                        // Workaround for this special case: User adds a key and submits by pressing the return key. The form however will use "add_property" which is the name of the first submit button in this form.
                                                unset($POST['update_value']);
                                                $POST['add_property'] = 'Add';
                                        }
-                                       if ($POST["add_property"]) {
+                                       if ($POST['add_property']) {
                                                $property = trim($POST['data'][$name]['name']);
                                                if (preg_replace('/[^a-zA-Z0-9_\.]*/', '', $property) != $property) {
                                                        $badPropertyMessage = t3lib_div::makeInstance(
@@ -260,7 +260,7 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                                                        $line.=LF.$pline;
                                                }
                                        } elseif ($POST['update_value']) {
-                                               $pline = $name . " = " . trim($POST['data'][$name]['value']);
+                                               $pline = $name . ' = ' . trim($POST['data'][$name]['value']);
 
                                                $updatedMessage = t3lib_div::makeInstance(
                                                        't3lib_FlashMessage',
@@ -288,18 +288,18 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                                if ($line) {
                                        $saveId = $tplRow['_ORIG_uid'] ? $tplRow['_ORIG_uid'] : $tplRow['uid'];
                                                // Set the data to be saved
-                                       $recData=array();
-                                       $field =$bType=="setup"?"config":"constants";
-                                       $recData["sys_template"][$saveId][$field] = $tplRow[$field].$line;
+                                       $recData = array();
+                                       $field = $bType == 'setup' ? 'config' : 'constants';
+                                       $recData['sys_template'][$saveId][$field] = $tplRow[$field] . $line;
                                                // Create new  tce-object
-                                       $tce = t3lib_div::makeInstance("t3lib_TCEmain");
-                                       $tce->stripslashes_values=0;
+                                       $tce = t3lib_div::makeInstance('t3lib_TCEmain');
+                                       $tce->stripslashes_values = 0;
                                                // Initialize
                                        $tce->start($recData, Array());
                                                // Saved the stuff
                                        $tce->process_datamap();
                                                // Clear the cache (note: currently only admin-users can clear the cache in tce_main.php)
-                                       $tce->clear_cacheCmd("all");
+                                       $tce->clear_cacheCmd('all');
 
                                                // re-read the template ...
                                        $this->initialize_editor($this->pObj->id, $template_uid);
@@ -310,41 +310,41 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                $tsbr = t3lib_div::_GET('tsbr');
                $update=0;
                if (is_array($tsbr))    {               // If any plus-signs were clicked, it's registred.
-                       $this->pObj->MOD_SETTINGS["tsbrowser_depthKeys_".$bType] = $tmpl->ext_depthKeys($tsbr, $this->pObj->MOD_SETTINGS["tsbrowser_depthKeys_".$bType]);
+                       $this->pObj->MOD_SETTINGS['tsbrowser_depthKeys_' . $bType] = $tmpl->ext_depthKeys($tsbr, $this->pObj->MOD_SETTINGS['tsbrowser_depthKeys_' . $bType]);
                        $update=1;
                }
 
-               if ($POST["Submit"])    {               // If any POST-vars are send, update the condition array
-                       $this->pObj->MOD_SETTINGS["tsbrowser_conditions"] = $POST["conditions"];
+               if ($POST['Submit'])    {               // If any POST-vars are send, update the condition array
+                       $this->pObj->MOD_SETTINGS['tsbrowser_conditions'] = $POST['conditions'];
                        $update=1;
                }
-               if ($update)    { $GLOBALS["BE_USER"]->pushModuleData($this->pObj->MCONF["name"], $this->pObj->MOD_SETTINGS); }
+               if ($update)    { $GLOBALS['BE_USER']->pushModuleData($this->pObj->MCONF['name'], $this->pObj->MOD_SETTINGS); }
 
 
                $tmpl->matchAlternative = $this->pObj->MOD_SETTINGS['tsbrowser_conditions'];
                $tmpl->matchAlternative[] = 'dummydummydummydummydummydummydummydummydummydummydummy';  // This is just here to make sure that at least one element is in the array so that the tsparser actually uses this array to match.
 
-               $tmpl->constantMode = $this->pObj->MOD_SETTINGS["ts_browser_const"];
-               if ($this->pObj->sObj && $tmpl->constantMode)   {$tmpl->constantMode = "untouched";}
+               $tmpl->constantMode = $this->pObj->MOD_SETTINGS['ts_browser_const'];
+               if ($this->pObj->sObj && $tmpl->constantMode)   {$tmpl->constantMode = 'untouched';}
 
-               $tmpl->regexMode = $this->pObj->MOD_SETTINGS["ts_browser_regexsearch"];
-               $tmpl->fixedLgd=$this->pObj->MOD_SETTINGS["ts_browser_fixedLgd"];
+               $tmpl->regexMode = $this->pObj->MOD_SETTINGS['ts_browser_regexsearch'];
+               $tmpl->fixedLgd = $this->pObj->MOD_SETTINGS['ts_browser_fixedLgd'];
                $tmpl->linkObjects = TRUE;
                $tmpl->ext_regLinenumbers = TRUE;
                $tmpl->ext_regComments = $this->pObj->MOD_SETTINGS['ts_browser_showComments'];
-               $tmpl->bType=$bType;
-               $tmpl->resourceCheck=1;
-               $tmpl->uplPath = PATH_site.$tmpl->uplPath;
+               $tmpl->bType = $bType;
+               $tmpl->resourceCheck = 1;
+               $tmpl->uplPath = PATH_site . $tmpl->uplPath;
                $tmpl->removeFromGetFilePath = PATH_site;
 
-               if ($this->pObj->MOD_SETTINGS["ts_browser_type"]=="const") {
-                       $tmpl->ext_constants_BRP=intval(t3lib_div::_GP("breakPointLN"));
+               if ($this->pObj->MOD_SETTINGS['ts_browser_type'] == 'const') {
+                       $tmpl->ext_constants_BRP = intval(t3lib_div::_GP('breakPointLN'));
                } else {
-                       $tmpl->ext_config_BRP=intval(t3lib_div::_GP("breakPointLN"));
+                       $tmpl->ext_config_BRP = intval(t3lib_div::_GP('breakPointLN'));
                }
                $tmpl->generateConfig();
 
-               if ($bType=="setup") {
+               if ($bType == 'setup') {
                        $theSetup = $tmpl->setup;
                } else {
                        $theSetup = $tmpl->setup_constants;
@@ -352,25 +352,25 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
 
                        // EDIT A VALUE:
                if ($this->pObj->sObj) {
-                       list($theSetup, $theSetupValue) = $tmpl->ext_getSetup($theSetup, ($this->pObj->sObj?$this->pObj->sObj:""));
+                       list($theSetup, $theSetupValue) = $tmpl->ext_getSetup($theSetup, ($this->pObj->sObj ? $this->pObj->sObj : ''));
 
                        if ($existTemplate) {
                                        // Value
                                $out = '';
-                               $out.= htmlspecialchars($this->pObj->sObj) . ' =<br />';
+                               $out .= htmlspecialchars($this->pObj->sObj) . ' =<br />';
                                $out .= '<input type="Text" name="data[' . htmlspecialchars($this->pObj->sObj) . '][value]" value="' . htmlspecialchars($theSetupValue) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(40) . ' />';
                                $out .= '<input type="Submit" name="update_value" value="' . $GLOBALS['LANG']->getLL('updateButton') . '" />';
                                $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('editProperty'), $out, 0, 0);
 
                                        // Property
-                               if (t3lib_extMgm::isLoaded("tsconfig_help")) {
-                                       $url=$BACK_PATH."wizard_tsconfig.php?mode=tsref&onlyProperty=1";
-                                       $params=array();
-                                       $params["formName"]="editForm";
-                                       $params["itemName"]="data[" . htmlspecialchars($this->pObj->sObj) . "][name]";
-                                       $params["itemValue"]="data[" . htmlspecialchars($this->pObj->sObj) . "][propertyValue]";
-                                       $TSicon = '<a href="#" onClick="vHWin=window.open(\'' . $url . t3lib_div::implodeArrayForUrl("", array("P"=>$params)) . '\',\'popUp' . $md5ID . '\',\'height=500,width=780,status=0,menubar=0,scrollbars=1\');vHWin.focus();return false;"><img src="' . $BACK_PATH . 'gfx/wizard_tsconfig_s.gif" width="22" height="16" border="0" class="absmiddle" hspace=2 title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:tsRef') . '"></a>';
-                               } else $TSicon="";
+                               if (t3lib_extMgm::isLoaded('tsconfig_help')) {
+                                       $url = $BACK_PATH . 'wizard_tsconfig.php?mode=tsref&onlyProperty=1';
+                                       $params = array();
+                                       $params['formName'] = 'editForm';
+                                       $params['itemName'] = 'data[' . htmlspecialchars($this->pObj->sObj) . '][name]';
+                                       $params['itemValue'] = 'data[' . htmlspecialchars($this->pObj->sObj) . '][propertyValue]';
+                                       $TSicon = '<a href="#" onClick="vHWin=window.open(\'' . $url . t3lib_div::implodeArrayForUrl('', array('P'=>$params)) . '\',\'popUp' . $md5ID . '\',\'height=500,width=780,status=0,menubar=0,scrollbars=1\');vHWin.focus();return false;"><img src="' . $BACK_PATH . 'gfx/wizard_tsconfig_s.gif" width="22" height="16" border="0" class="absmiddle" hspace=2 title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:tsRef') . '"></a>';
+                               } else $TSicon = '';
                                $out = '';
                                $out = '<nobr>' . htmlspecialchars($this->pObj->sObj) . '.';
                                $out .= '<input type="Text" name="data[' . htmlspecialchars($this->pObj->sObj) . '][name]"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . ' />' . $TSicon . ' = </nobr><br />';
@@ -382,10 +382,10 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
 
                                        // clear
                                $out = '';
-                               $out = htmlspecialchars($this->pObj->sObj) . " <strong>" .
+                               $out = htmlspecialchars($this->pObj->sObj) . ' <strong>' .
                                        $GLOBALS['LANG']->csConvObj->conv_case(
                                                $GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('clear'), 'toUpper'
-                                       ) . "</strong> &nbsp;&nbsp;";
+                                       ) . '</strong> &nbsp;&nbsp;';
                                $out .= '<input type="Checkbox" name="data[' . htmlspecialchars($this->pObj->sObj) . '][clearValue]" value="1" />';
                                $out .= '<input type="Submit" name="clear_object" value="' . $GLOBALS['LANG']->getLL('clearButton') . '" />';
                                $theOutput .= $this->pObj->doc->spacer(20);
@@ -414,18 +414,18 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                                $out .= sprintf($GLOBALS['LANG']->getLL('removeKey'), htmlspecialchars($this->pObj->sObj));
                        }
                        if ($out) {
-                               $theOutput.=$this->pObj->doc->divider(5);
-                               $theOutput.=$this->pObj->doc->section("", $out);
+                               $theOutput .= $this->pObj->doc->divider(5);
+                               $theOutput .= $this->pObj->doc->section('', $out);
                        }
 
                                // back
                        $out = $GLOBALS['LANG']->getLL('back');
-                       $out = '<a href="index.php?id='.$this->pObj->id.'"><strong>'.$out.'</strong></a>';
-                       $theOutput.=$this->pObj->doc->divider(5);
-                       $theOutput.=$this->pObj->doc->section("", $out);
+                       $out = '<a href="index.php?id=' . $this->pObj->id . '"><strong>' . $out . '</strong></a>';
+                       $theOutput .= $this->pObj->doc->divider(5);
+                       $theOutput .= $this->pObj->doc->section('', $out);
 
                } else {
-                       $tmpl->tsbrowser_depthKeys=$this->pObj->MOD_SETTINGS["tsbrowser_depthKeys_".$bType];
+                       $tmpl->tsbrowser_depthKeys = $this->pObj->MOD_SETTINGS['tsbrowser_depthKeys_' . $bType];
 
                        if (t3lib_div::_POST('search') && t3lib_div::_POST('search_field'))     {               // If any POST-vars are send, update the condition array
                                $tmpl->tsbrowser_depthKeys = $tmpl->ext_getSearchKeys($theSetup, '', t3lib_div::_POST('search_field'), array());
@@ -445,16 +445,16 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                        $menu .= '</div>';
 
                        $theOutput .= $this->pObj->doc->section('', '<nobr>' . $menu . '</nobr>');
-                       $theKey=$this->pObj->MOD_SETTINGS["ts_browser_toplevel_".$bType];
-                       if (!$theKey || !str_replace("-", "", $theKey)) {$theKey="";}
-                       list($theSetup,$theSetupValue) = $tmpl->ext_getSetup($theSetup, ($this->pObj->MOD_SETTINGS['ts_browser_toplevel_'.$bType]?$this->pObj->MOD_SETTINGS['ts_browser_toplevel_'.$bType]:''));
+                       $theKey = $this->pObj->MOD_SETTINGS['ts_browser_toplevel_' . $bType];
+                       if (!$theKey || !str_replace('-', '', $theKey)) {$theKey = '';}
+                       list($theSetup,$theSetupValue) = $tmpl->ext_getSetup($theSetup, ($this->pObj->MOD_SETTINGS['ts_browser_toplevel_' . $bType] ? $this->pObj->MOD_SETTINGS['ts_browser_toplevel_'.$bType] : ''));
                        $tree = $tmpl->ext_getObjTree($theSetup, $theKey, '', '', $theSetupValue, $this->pObj->MOD_SETTINGS['ts_browser_alphaSort']);
                        $tree = $tmpl->substituteCMarkers($tree);
 
 
 
                                // Parser Errors:
-                       $pEkey = ($bType=="setup"?"config":"constants");
+                       $pEkey = ($bType == 'setup' ? 'config' : 'constants');
                        if (count($tmpl->parserErrors[$pEkey])) {
                                $errMsg=array();
                                $templateAnalyzerInstalled = t3lib_extMgm::isLoaded('tstemplate_analyzer');
@@ -467,7 +467,7 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                                                        . '</a>';
                                        }
 
-                                       $errMsg[] = ($inf[1]) . ": &nbsp; &nbsp;" . $inf[0] . $errorLink;
+                                       $errMsg[] = ($inf[1]) . ': &nbsp; &nbsp;' . $inf[0] . $errorLink;
                                }
                                $theOutput .= $this->pObj->doc->spacer(10);
 
@@ -482,7 +482,7 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
 
 
 
-                       if (isset($this->pObj->MOD_SETTINGS["ts_browser_TLKeys_" . $bType][$theKey])) {
+                       if (isset($this->pObj->MOD_SETTINGS['ts_browser_TLKeys_' . $bType][$theKey])) {
                                $remove = '<td width="1%" nowrap><a href="index.php?id=' . $this->pObj->id . '&addKey[' . $theKey . ']=0&SET[ts_browser_toplevel_' . $bType . ']=0"><strong>' . $GLOBALS['LANG']->getLL('removeKey') . '</strong></a></td>';
                        } else {
                                $remove = '';
@@ -510,7 +510,7 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                        $menu .= '<label for="checkTs_browser_showComments">' . $GLOBALS['LANG']->getLL('displayComments') . '</label>';
                        $menu .= t3lib_BEfunc::getFuncCheck($this->pObj->id, 'SET[ts_browser_alphaSort]', $this->pObj->MOD_SETTINGS['ts_browser_alphaSort'], '', '', 'id="checkTs_browser_alphaSort"');
                        $menu .= '<label for="checkTs_browser_alphaSort">' . $GLOBALS['LANG']->getLL('sortAlphabetically') . '</label>';
-                       $menu .= t3lib_BEfunc::getFuncCheck($this->pObj->id, 'SET[ts_browser_fixedLgd]', $this->pObj->MOD_SETTINGS["ts_browser_fixedLgd"], '', '', 'id="checkTs_browser_fixedLgd"');
+                       $menu .= t3lib_BEfunc::getFuncCheck($this->pObj->id, 'SET[ts_browser_fixedLgd]', $this->pObj->MOD_SETTINGS['ts_browser_fixedLgd'], '', '', 'id="checkTs_browser_fixedLgd"');
                        $menu .= '<label for="checkTs_browser_fixedLgd">' . $GLOBALS['LANG']->getLL('cropLines') . '</label>';
                        if ($bType == 'setup' && !$this->pObj->MOD_SETTINGS['ts_browser_fixedLgd']) {
                                $menu .= '<br /><br /><label>' . $GLOBALS['LANG']->getLL('displayConstants') . '</label>';
@@ -527,7 +527,7 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
 
                                $out = '';
                                foreach ($tmpl->sections as $key => $val) {
-                                       $out .= '<tr><td nowrap class="tsob-conditions"><input type="checkbox" name="conditions[' . $key . ']" id="check' . $key . '" value="' . htmlspecialchars($val) . '"' . ($this->pObj->MOD_SETTINGS['tsbrowser_conditions'][$key] ? " checked" : "") . ' />';
+                                       $out .= '<tr><td nowrap class="tsob-conditions"><input type="checkbox" name="conditions[' . $key . ']" id="check' . $key . '" value="' . htmlspecialchars($val) . '"' . ($this->pObj->MOD_SETTINGS['tsbrowser_conditions'][$key] ? ' checked' : '') . ' />';
                                        $out .= '<label for="check' .$key . '">' . $tmpl->substituteCMarkers(htmlspecialchars($val)) . '</label></td></tr>';
                                }
                                $theOutput.='
@@ -544,4 +544,4 @@ class tx_tstemplateobjbrowser extends t3lib_extobjbase {
                return $theOutput;
        }
 }
-?>
\ No newline at end of file
+?>