From 36edac0170d64e6a8a7a7a5afe3debf90bce1913 Mon Sep 17 00:00:00 2001 From: Platonides Date: Wed, 20 Jul 2011 15:13:58 +0000 Subject: [PATCH] Fixup r89029. You don't include the brackets in the method name! MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --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 | 2 +- tests/phpunit/includes/media/SVGMetadataExtractorTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/media/SVGMetadataExtractor.php b/includes/media/SVGMetadataExtractor.php index 97c468c7aa..791c5105c3 100644 --- a/includes/media/SVGMetadataExtractor.php +++ b/includes/media/SVGMetadataExtractor.php @@ -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)." ); diff --git a/tests/phpunit/includes/media/SVGMetadataExtractorTest.php b/tests/phpunit/includes/media/SVGMetadataExtractorTest.php index 07ab4c1581..6979ed017e 100644 --- a/tests/phpunit/includes/media/SVGMetadataExtractorTest.php +++ b/tests/phpunit/includes/media/SVGMetadataExtractorTest.php @@ -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; } -- 2.20.1