Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | */ |
15 | 15 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
16 | 16 | |
17 | | -define('SF_VERSION','1.2.3'); |
| 17 | +define('SF_VERSION','1.2.4'); |
18 | 18 | |
19 | 19 | // constants for special properties |
20 | 20 | define('SF_SP_HAS_DEFAULT_FORM', 1); |
— | — | @@ -798,7 +798,7 @@ |
799 | 799 | $substring = str_replace(' ', '_', strtolower($substring)); |
800 | 800 | $substring = str_replace('_', '\_', $substring); |
801 | 801 | $substring = str_replace("'", "\'", $substring); |
802 | | - $conditions .= " AND LOWER(page_title) LIKE '$substring%'"; |
| 802 | + $conditions .= " AND (LOWER(page_title) LIKE '$substring%' OR LOWER(page_title) LIKE '%\_$substring%')"; |
803 | 803 | } |
804 | 804 | $sql_options['ORDER BY'] = 'page_title'; |
805 | 805 | $res = $db->select( $db->tableNames('page'), |