Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -294,7 +294,8 @@ |
295 | 295 | $newcategories[] = $new_category; |
296 | 296 | } |
297 | 297 | } else { |
298 | | - $cur_value = str_replace( "_", " ", $row['page_title'] ); |
| 298 | + $cur_title = Title::makeTitleSafe( $row['page_namespace'], $row['page_title'] ); |
| 299 | + $cur_value = SFLinkUtils::titleString( $cur_title ); |
299 | 300 | if ( ! in_array( $cur_value, $pages ) ) { |
300 | 301 | if ( $substring == null ) |
301 | 302 | $pages[] = $cur_value; |