Index: trunk/phase3/includes/media/SVGMetadataExtractor.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | $size = filesize( $source ); |
57 | 57 | if ( $size === false ) { |
58 | 58 | throw new MWException( "Error getting filesize of SVG." ); |
59 | | - } |
| 59 | + } |
60 | 60 | |
61 | 61 | if ( $size > $wgSVGMetadataCutoff ) { |
62 | 62 | $this->debug( "SVG is $size bytes, which is bigger than $wgSVGMetadataCutoff. Truncating." ); |
— | — | @@ -157,7 +157,7 @@ |
158 | 158 | } |
159 | 159 | $keepReading = $this->reader->read(); |
160 | 160 | while( $keepReading ) { |
161 | | - if( $this->reader->localName == $name && $this->namespaceURI == self::NS_SVG && $this->reader->nodeType == XmlReader::END_ELEMENT ) { |
| 161 | + if( $this->reader->localName == $name && $this->reader->namespaceURI == self::NS_SVG && $this->reader->nodeType == XmlReader::END_ELEMENT ) { |
162 | 162 | break; |
163 | 163 | } elseif( $this->reader->nodeType == XmlReader::TEXT ){ |
164 | 164 | $this->metadata[$metafield] = trim( $this->reader->value ); |