| 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.2.9'); |
| | 13 | +define('SF_VERSION','1.2.10'); |
| 14 | 14 | |
| 15 | 15 | $wgExtensionCredits['specialpage'][]= array( |
| 16 | 16 | 'name' => 'Semantic Forms', |
| — | — | @@ -420,9 +420,8 @@ |
| 421 | 421 | function sffEmbeddedEditForm($action, $article) { |
| 422 | 422 | global $sfgIP; |
| 423 | 423 | |
| 424 | | - // for some reason, the code calling the 'UnknownAction' hook wants |
| 425 | | - // "true" if the hook failed, and "false" otherwise... this is |
| 426 | | - // probably a bug, but we'll just work with it |
| | 424 | + // return "true" if the call failed (meaning, pass on handling of |
| | 425 | + // the hook to others), and "false" otherwise |
| 427 | 426 | if ($action != 'formedit') { |
| 428 | 427 | return true; |
| 429 | 428 | } |
| — | — | @@ -636,7 +635,8 @@ |
| 637 | 636 | $substring = str_replace(' ', '_', strtolower($substring)); |
| 638 | 637 | $substring = str_replace('_', '\_', $substring); |
| 639 | 638 | $substring = str_replace("'", "\'", $substring); |
| 640 | | - $conditions = 'cl_to = '. $db->addQuotes($category) . " AND (LOWER(page_title) LIKE '" . $substring . "%' OR LOWER(page_title) LIKE '%\_" . $substring . "%')"; |
| | 639 | + $conditions = 'cl_to = '. $db->addQuotes($category) . " AND (LOWER(page_title) LIKE '" . $substring . "%' OR LOWER(page_title) LIKE '%\_" . $substring . "%' OR page_namespace = " . NS_CATEGORY . ")"; |
| | 640 | + |
| 641 | 641 | } else { |
| 642 | 642 | $conditions = 'cl_to = '. $db->addQuotes($category); |
| 643 | 643 | } |