Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_List.php |
— | — | @@ -83,7 +83,8 @@ |
84 | 84 | } |
85 | 85 | $first_col = false; |
86 | 86 | } |
87 | | - $result .= '{{' . $this->mTemplate . str_replace(array('=','|'), array('=', '|'), $wikitext) . '}}'; // encode '=' and '|' for use in templates (templates fail otherwise) |
| 87 | + $result .= '{{' . $this->mTemplate . $wikitext . '}}'; |
| 88 | + //str_replace(array('=','|'), array('=', '|'), // encode '=' and '|' for use in templates (templates fail otherwise) -- this is not the place for doing this, since even DV-Wikitexts contain proper "|"! |
88 | 89 | } else { // build simple list |
89 | 90 | $first_col = true; |
90 | 91 | $found_values = false; // has anything but the first column been printed? |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Embedded.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | | - * Print query results in tables. |
| 4 | + * Print query results by embeddings them into pages. |
5 | 5 | * @author Markus Krötzsch |
6 | 6 | */ |
7 | 7 | |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Template.php |
— | — | @@ -51,11 +51,11 @@ |
52 | 52 | } else { |
53 | 53 | $wikitext .= ', '; |
54 | 54 | } |
55 | | - $wikitext .= $text; |
| 55 | + $wikitext .= $text; //str_replace(array('=','|'), array('=', '|'),$text); // encode '=' and '|' for use in templates (templates fail otherwise) |
56 | 56 | } |
57 | 57 | $firstcol = false; |
58 | 58 | } |
59 | | - $parserinput .= '{{' . $this->m_template . str_replace(array('=','|'), array('=', '|'), $wikitext) . '}}'; // encode '=' and '|' for use in templates (templates fail otherwise) |
| 59 | + $parserinput .= '{{' . $this->m_template . $wikitext . '}}'; |
60 | 60 | } |
61 | 61 | $parserOutput = $parser->parse($parserinput, $wgTitle, $parser_options); |
62 | 62 | $result = $parserOutput->getText(); |