Index: tags/extensions/SemanticMediaWiki/REL_1_4_2/includes/SMW_QP_List.php |
— | — | @@ -9,8 +9,8 @@ |
10 | 10 | /** |
11 | 11 | * New implementation of SMW's printer for results in lists. |
12 | 12 | * |
13 | | - * Somewhat confusing code, since one has to iterate through lists, inserting texts |
14 | | - * in between their elements depending on whether the element is the first that is |
| 13 | + * Somewhat confusing code, since one has to iterate through lists, inserting texts |
| 14 | + * in between their elements depending on whether the element is the first that is |
15 | 15 | * printed, the first that is printed in parentheses, or the last that will be printed. |
16 | 16 | * Maybe one could further simplify this. |
17 | 17 | * |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | if ( ('ul' == $this->mFormat) || ('ol' == $this->mFormat) ) { |
44 | 44 | $header = '<' . $this->mFormat . '>'; |
45 | 45 | $footer = '</' . $this->mFormat . '>'; |
46 | | - $rowstart = "\n\t<li>"; |
| 46 | + $rowstart = '<li>'; |
47 | 47 | $rowend = '</li>'; |
48 | 48 | $plainlist = false; |
49 | 49 | } else { |
Index: tags/extensions/SemanticMediaWiki/REL_1_4_2/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -769,7 +769,7 @@ |
770 | 770 | $this->m_dbs->query("INSERT " . (($wgDBtype=='postgres')?"":"IGNORE") . " INTO $tmpnew (id) VALUES $values", 'SMW::executeHierarchyQuery'); |
771 | 771 | |
772 | 772 | for ($i=0; $i<$depth; $i++) { |
773 | | - $this->m_dbs->query("INSERT INTO $tmpres (id) SELECT s_id" . ($wgDBtype=='postgres'?'::integer':'') . " FROM $smw_subs2, $tmpnew WHERE o_id=id", |
| 773 | + $this->m_dbs->query("INSERT " . (($wgDBtype=='postgres')?'':'IGNORE ') . "INTO $tmpres (id) SELECT s_id" . ($wgDBtype=='postgres'?'::integer':'') . " FROM $smw_subs2, $tmpnew WHERE o_id=id", |
774 | 774 | 'SMW::executeHierarchyQuery'); |
775 | 775 | if ($this->m_dbs->affectedRows() == 0) { // no change, exit loop |
776 | 776 | break; |