Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php |
— | — | @@ -141,8 +141,8 @@ |
142 | 142 | // replace the last two whitespaces in the relation name with |
143 | 143 | // non-breaking spaces. Since there seems to be no PHP-replacer |
144 | 144 | // for the last two, a strrev ist done twice to turn it around. |
145 | | - // That's why nbsp is written backward. |
146 | | - $html .= ' <strong>' . $skin->makeKnownLinkObj($result, strrev(preg_replace('/[\s]/', ';psbn&', strrev(smwfT($result)), 2) )) . '</strong>' . $vsep . "\n"; // TODO makeLinkObj or makeKnownLinkObj? |
| 145 | + // That's why nbsp is written backwards. |
| 146 | + $html .= ' <strong>' . $skin->makeKnownLinkObj($result, strrev(preg_replace('/[\s]/u', ';psbn&', strrev(smwfT($result)), 2) )) . '</strong>' . $vsep . "\n"; // TODO makeLinkObj or makeKnownLinkObj? |
147 | 147 | } |
148 | 148 | if (($offset>0) || (count($inprop)>$limit)) $html .= $navigation; |
149 | 149 | } |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | // } |
177 | 177 | foreach ($atts as $att) { |
178 | 178 | $objectoptions = new SMWRequestOptions(); |
179 | | - $html .= '<strong>' . $skin->makeKnownLinkObj($att, preg_replace('/[\s]/', ' ', smwfT($att), 2)) . "</strong> \n"; |
| 179 | + $html .= '<strong>' . $skin->makeKnownLinkObj($att, preg_replace('/[\s]/u', ' ', smwfT($att), 2)) . "</strong> \n"; |
180 | 180 | $objects = &smwfGetStore()->getPropertyValues($article->getTitle(), $att, $objectoptions); |
181 | 181 | $objectcount = count($objects); |
182 | 182 | $count = 0; |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Factbox.php |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | foreach(SMWFactbox::$semdata->getProperties() as $key => $property) { |
272 | 272 | $text .= '<tr><td class="smwpropname">'; |
273 | 273 | if ($property instanceof Title) { |
274 | | - $text .= '<tr><td class="smwpropname">[[' . $property->getPrefixedText() . '|' . preg_replace('/[\s]/',' ',$property->getText(),2) . ']] </td><td class="smwprops">'; |
| 274 | + $text .= '<tr><td class="smwpropname">[[' . $property->getPrefixedText() . '|' . preg_replace('/[ ]/u',' ',$property->getText(),2) . ']] </td><td class="smwprops">'; |
275 | 275 | // TODO: the preg_replace is a kind of hack to ensure that the left column does not get too narrow; maybe we can find something nicer later |
276 | 276 | } else { // special property |
277 | 277 | if ($key{0} == '_') continue; // internal special property without label |