Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QP_Table.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | $printrequestparameters = array(); |
27 | 27 | foreach ($res->getPrintRequests() as $pr) |
28 | 28 | $printrequestparameters[] = $pr->getParams(); |
29 | | - |
| 29 | + |
30 | 30 | // print header |
31 | 31 | $result = '<table class="smwtable"' . |
32 | 32 | ('broadtable' == $this->mFormat?' width="100%"':'') . |
— | — | @@ -45,12 +45,12 @@ |
46 | 46 | $fieldcount = -1; |
47 | 47 | foreach ($row as $field) { |
48 | 48 | $fieldcount = $fieldcount + 1; |
49 | | - |
| 49 | + |
50 | 50 | $result .= "\t\t<td"; |
51 | 51 | if (array_key_exists('align', $printrequestparameters[$fieldcount])) { |
52 | 52 | $alignment = $printrequestparameters[$fieldcount]['align']; |
53 | 53 | // check the content, otherwise evil people could inject here anything they wanted |
54 | | - if (($alignment == 'right') || ($alignment == 'left')) |
| 54 | + if (($alignment == 'right') || ($alignment == 'left')) |
55 | 55 | $result .= " style=\"text-align:" . $printrequestparameters[$fieldcount]['align'] . ";\""; |
56 | 56 | } |
57 | 57 | $result .= ">"; |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | $result .= '<br />'; |
68 | 68 | } |
69 | 69 | // use shorter "LongText" for wikipage |
70 | | - $result .= ($object->getTypeID() == '_wpg')? |
| 70 | + $result .= ( ($object->getTypeID() == '_wpg')||($object->getTypeID() == '__sin') )? |
71 | 71 | $object->getLongText($outputmode,$this->getLinker($firstcol)): |
72 | 72 | $object->getShortText($outputmode,$this->getLinker($firstcol)); |
73 | 73 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_QueryResult.php |
— | — | @@ -233,7 +233,7 @@ |
234 | 234 | public function getNextText($outputmode, $linker = NULL) { |
235 | 235 | $object = $this->getNextObject(); |
236 | 236 | if ($object instanceof SMWDataValue) { //print data values |
237 | | - return ($object->getTypeID() == '_wpg')? // prefer "long" text for page-values |
| 237 | + return ( ($object->getTypeID() == '_wpg')||($object->getTypeID() == '__sin') )? // prefer "long" text for page-values |
238 | 238 | $object->getLongText($outputmode, $linker): |
239 | 239 | $object->getShortText($outputmode, $linker); |
240 | 240 | } else { |