Project

General

Profile

« Previous | Next » 

Revision 1852

Added by darkviper almost 12 years ago

updated Twig template engine to stable version 1.11.1 step2

View differences:

Node.php
134 134
     *
135 135
     * @param  string The attribute name
136 136
     *
137
     * @return mixed  The attribute value
137
     * @return mixed The attribute value
138 138
     */
139 139
    public function getAttribute($name)
140 140
    {
141 141
        if (!array_key_exists($name, $this->attributes)) {
142
            throw new Twig_Error_Runtime(sprintf('Attribute "%s" does not exist for Node "%s".', $name, get_class($this)));
142
            throw new LogicException(sprintf('Attribute "%s" does not exist for Node "%s".', $name, get_class($this)));
143 143
        }
144 144

  
145 145
        return $this->attributes[$name];
......
188 188
    public function getNode($name)
189 189
    {
190 190
        if (!array_key_exists($name, $this->nodes)) {
191
            throw new Twig_Error_Runtime(sprintf('Node "%s" does not exist for Node "%s".', $name, get_class($this)));
191
            throw new LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, get_class($this)));
192 192
        }
193 193

  
194 194
        return $this->nodes[$name];

Also available in: Unified diff