Index: trunk/extensions/OpenGraphMeta/OpenGraphMeta.php |
— | — | @@ -104,9 +104,13 @@ |
105 | 105 | } |
106 | 106 | |
107 | 107 | foreach( $meta as $property => $value ) { |
108 | | - if ( $value ) |
109 | | - //$out->addMeta($property, $value ); // FB wants property= instead of name= blech, is that even valid html? |
110 | | - $out->addHeadItem("meta:property:$property", " ".Html::element( 'meta', array( 'property' => $property, 'content' => $value ) )."\n"); |
| 108 | + if ( $value ) { |
| 109 | + if ( isset( OutputPage::$metaAttrPrefixes ) && isset( OutputPage::$metaAttrPrefixes['property'] ) ) { |
| 110 | + $out->addMeta( "property:$property", $value ); |
| 111 | + } else { |
| 112 | + $out->addHeadItem("meta:property:$property", " ".Html::element( 'meta', array( 'property' => $property, 'content' => $value ) )."\n"); |
| 113 | + } |
| 114 | + } |
111 | 115 | } |
112 | 116 | |
113 | 117 | return true; |