Index: trunk/wiki2xml/php/xml2txt.php |
— | — | @@ -68,7 +68,11 @@ |
69 | 69 | return "" ; |
70 | 70 | } |
71 | 71 | |
72 | | - if ( $tag == "LINK" ) { |
| 72 | + if ( $tag == "EXTENSION" ) { |
| 73 | + $sub = trim ( $this->sub_parse ( $tree ) ) ; |
| 74 | + if ( $sub == '' ) return '' ; |
| 75 | + return " [$sub] " ; |
| 76 | + } else if ( $tag == "LINK" ) { |
73 | 77 | $sub = $this->sub_parse ( $tree ) ; |
74 | 78 | $link = "" ; |
75 | 79 | if ( isset ( $this->attrs['TYPE'] ) AND strtolower ( $this->attrs['TYPE'] ) == 'external' ) { |
— | — | @@ -131,6 +135,7 @@ |
132 | 136 | else array_push ( $tree->list , $x + 1 ) ; # Increase last counter |
133 | 137 | } |
134 | 138 | } else { |
| 139 | + |
135 | 140 | if ( $tag == "ARTICLE" && isset ( $this->attrs["TITLE"] ) ) { |
136 | 141 | $ret .= strtoupper ( urldecode ( $this->attrs["TITLE"] ) ) . "\n" ; |
137 | 142 | } |