Development

#3605: comments_1_1.patch

You must first sign up to be able to contribute.

Ticket #3605: comments_1_1.patch

File comments_1_1.patch, 4.2 kB (added by gordon, 8 months ago)
  • lib/helper/JavascriptHelper.php

    old new  
    866866      $javascript .= "'$field_id', "; 
    867867      $javascript .= _array_or_string_for_javascript(url_for($url)); 
    868868 
    869       //translate symfony option names to InPlaceEditor options 
     869      // translate symfony option names to InPlaceEditor options 
    870870      if (isset($options['cancel_text'])) 
    871871      { 
    872872        $options['cancelText'] = _array_or_string_for_javascript($options['cancel_text']); 
  • lib/helper/sfRichTextEditorFCK.class.php

    old new  
    8585 
    8686    $content = $fckeditor->CreateHtml(); 
    8787 
    88     //fix for http://trac.symfony-project.com/ticket/732 
    89     //fields need to be of type text to be picked up by fillin. they are hidden by inline css anyway: 
    90     //<input type="hidden" id="name" name="name" style="display:none" value="&lt;p&gt;default&lt;/p&gt;"> 
     88    // fix for http://trac.symfony-project.com/ticket/732 
     89    // fields need to be of type text to be picked up by fillin. they are hidden by inline css anyway: 
     90    // <input type="hidden" id="name" name="name" style="display:none" value="&lt;p&gt;default&lt;/p&gt;"> 
    9191    $content = str_replace('type="hidden"','type="text"',$content); 
    9292 
    9393    return $content; 
  • lib/plugins/sfCompat10Plugin/lib/util/sfFillInForm.class.php

    old new  
    4646 
    4747    $noHead = strpos($html,'<head>') === false; 
    4848    if ($noHead){ 
    49       //loadHTML needs the conent-type meta for the charset 
     49      // loadHTML needs the conent-type meta for the charset 
    5050      $html = '<meta http-equiv="Content-Type" content="text/html; charset='.sfConfig::get('sf_charset').'"/>'.$html; 
    5151    } 
    5252 
     
    5454    $dom = $this->fillInDom($dom, $formName, $formId, $values); 
    5555 
    5656    if($noHead){ 
    57       //remove the head element that was created by adding the meta tag. 
     57      // remove the head element that was created by adding the meta tag. 
    5858      $headElement = $dom->getElementsByTagName('head')->item(0); 
    5959      if ($headElement) 
    6060      { 
     
    172172      } 
    173173      else if ($element->nodeName == 'select') 
    174174      { 
    175         //if the name contains [] it is part of an array that needs to be shifted 
     175        // if the name contains [] it is part of an array that needs to be shifted 
    176176        $value    = $this->getValue($values, $name, strpos($name,'[]') !== false); 
    177177        $multiple = $element->hasAttribute('multiple'); 
    178178        foreach ($xpath->query('descendant::'.$ns.'option', $element) as $option) 
     
    206206    return null !== sfToolkit::getArrayValueForPath($values, $name); 
    207207  } 
    208208 
    209   //use reference to values so that arrays can be shifted. 
     209  // use reference to values so that arrays can be shifted. 
    210210  protected function getValue(&$values, $name, $shiftArray = false) 
    211211  { 
    212212    if (array_key_exists($name, $values)) 
     
    214214      $return = $values[$name]; 
    215215      if ($shiftArray && is_array($return)) 
    216216      { 
    217         //we need to remove the first element from the array. Therefore we need a reference 
     217        // we need to remove the first element from the array. Therefore we need a reference 
    218218        $arrayRef = &$values[$name]; 
    219219        $return = array_shift($arrayRef); 
    220220      } 
  • lib/util/sfToolkit.class.php

    old new  
    705705    $from = strtoupper($from); 
    706706    if ($from != 'UTF-8') 
    707707    { 
    708       $s = iconv($from,'UTF-8',$string); //to UTF-8 
     708      $s = iconv($from,'UTF-8',$string);  // to UTF-8 
    709709 
    710       return $s !== false ? $s : $string; //it could return false 
     710      return $s !== false ? $s : $string; // it could return false 
    711711    } 
    712712 
    713713    return $string;