Changeset 5974


Ignore:
Timestamp:
01/25/12 03:22:49 (4 months ago)
Author:
vain
Message:
  • fixed the autoEscape() method, which is now assigning escaped data to the view ,)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/renderer/renderer.base.php

    r5940 r5974  
    502502     * @param string $key The variable name. 
    503503     * @param mixed $val The variable value. 
     504     * @return boolean True if data was assigned to view; false if not. 
    504505     */ 
    505506    public function autoEscape($key, $value) 
     
    512513                $clean[$key2] = htmlentities($value2, ENT_QUOTES, 'utf-8'); 
    513514            } 
     515 
     516            return $this->assign($clean); 
    514517        } 
    515518        else 
    516519        { 
    517520            $clean = htmlentities($value2, ENT_QUOTES, 'utf-8'); 
    518         } 
    519         // @todo return assign($key, $clean); 
     521 
     522            return $this->assign($key, $clean); 
     523        } 
    520524    } 
    521525 
Note: See TracChangeset for help on using the changeset viewer.