Fixup r89029. You don't include the brackets in the method name!
authorPlatonides <platonides@users.mediawiki.org>
Wed, 20 Jul 2011 15:13:58 +0000 (15:13 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 20 Jul 2011 15:13:58 +0000 (15:13 +0000)
--ta línea y las que están debajo serán ignoradas--

M    includes/media/SVGMetadataExtractor.php
M    tests/phpunit/includes/media/SVGMetadataExtractorTest.php

includes/media/SVGMetadataExtractor.php
tests/phpunit/includes/media/SVGMetadataExtractorTest.php

index 97c468c..791c510 100644 (file)
@@ -177,7 +177,7 @@ class SVGReader {
                        return;
                }
                // TODO: find and store type of xml snippet. metadata['metadataType'] = "rdf"
-               if( method_exists( $this->reader, 'readInnerXML()' ) ) {
+               if( method_exists( $this->reader, 'readInnerXML' ) ) {
                        $this->metadata[$metafield] = trim( $this->reader->readInnerXML() );
                } else {
                        throw new MWException( "The PHP XMLReader extension does not come with readInnerXML() method. Your libxml is probably out of date (need 2.6.20 or later)." );
index 07ab4c1..6979ed0 100644 (file)
@@ -18,7 +18,7 @@ class SVGMetadataExtractorTest extends MediaWikiTestCase {
         */
        function testGetXMLMetadata( $infile, $expected ) {
                $r = new XMLReader();
-               if( !method_exists( $r, 'readInnerXML()' ) ) {
+               if( !method_exists( $r, 'readInnerXML' ) ) {
                        $this->markTestSkipped( 'XMLReader::readInnerXML() does not exist (libxml >2.6.20 needed).' );
                        return;
                }