Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | |
11 | 11 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
12 | 12 | |
13 | | -define('SF_VERSION','1.3.1'); |
| 13 | +define('SF_VERSION','1.3.2'); |
14 | 14 | |
15 | 15 | $wgExtensionCredits['specialpage'][]= array( |
16 | 16 | 'name' => 'Semantic Forms', |
— | — | @@ -630,7 +630,11 @@ |
631 | 631 | $string_value = str_replace('_', ' ', $dv->getXSDValue()); |
632 | 632 | $string_value = str_replace("'", "\'", $string_value); |
633 | 633 | if (array_search($string_value, $pages) === false) |
634 | | - $pages[] = $string_value; |
| 634 | + if ($substring != null) |
| 635 | + $pages[] = array('title' => str_replace('_', ' ' |
| 636 | +, $string_value)); |
| 637 | + else |
| 638 | + $pages[] = $string_value; |
635 | 639 | } |
636 | 640 | // if there was a substring specified, also find values that have |
637 | 641 | // it after a space, not just at the beginning of the value |
— | — | @@ -640,7 +644,7 @@ |
641 | 645 | $requestoptions2->addStringCondition(" $substring", SMWStringCondition::STRCOND_MID); |
642 | 646 | $data_values = $store->getPropertyValues(null, $property, $requestoptions2); |
643 | 647 | foreach ($data_values as $dv) { |
644 | | - $pages[] = $dv->getXSDValue(); |
| 648 | + $pages[] = array('title' => str_replace('_', ' ', $dv->getXSDValue())); |
645 | 649 | } |
646 | 650 | } |
647 | 651 | return $pages; |