Index: branches/img_metadata/phase3/includes/media/XMP.php |
— | — | @@ -632,6 +632,11 @@ |
633 | 633 | private function startElementModeSeq( $elm ) { |
634 | 634 | if ( $elm === self::NS_RDF . ' Seq' ) { |
635 | 635 | array_unshift( $this->mode, self::MODE_LI ); |
| 636 | + } else if ( $elm === self::NS_RDF . ' Bag' ) { |
| 637 | + # bug 27105 |
| 638 | + wfDebugLog( 'XMP', __METHOD__ . ' Expected an rdf:Seq, but got an rdf:Bag. Pretending' |
| 639 | + . ' it is a Seq, since some buggy software is known to screw this up.' ); |
| 640 | + array_unshift( $this->mode, self::MODE_LI ); |
636 | 641 | } else { |
637 | 642 | throw new MWException( "Expected <rdf:Seq> but got $elm." ); |
638 | 643 | } |