Index: /MediaWiki/trunk/FCKeditorSajax.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditorSajax.body.php	(revision 2466)
+++ /MediaWiki/trunk/FCKeditorSajax.body.php	(revision 2467)
@@ -65,4 +65,5 @@
 	$term2 = str_replace( ' ', '_', $wgContLang->lc( $term ) );
 	$term3 = str_replace( ' ', '_', $wgContLang->uc( $term ) );
+	$term4 = str_replace( ' ', '_', $wgContLang->ucfirst( $term2 ) );
 	$term = $term1;
 
@@ -73,5 +74,8 @@
 	$res = $db->select( 'page', 'page_title',
 	array(  'page_namespace' => NS_IMAGE,
-	"LOWER(page_title) LIKE '%". $db->strencode( $term2 ) ."%'" ),
+	"page_title LIKE '%". $db->strencode( $term1 ) ."%'".
+	"OR (page_title LIKE '%". $db->strencode( $term2 ) ."%') ".
+	"OR (page_title LIKE '%". $db->strencode( $term3 ) ."%') ".
+	"OR (page_title LIKE '%". $db->strencode( $term4 ) ."%') " ),
 	"wfSajaxSearch",
 	array( 'LIMIT' => $limit+1 )
@@ -110,4 +114,5 @@
 	$term2 = str_replace( ' ', '_', $wgContLang->lc( $term ) );
 	$term3 = str_replace( ' ', '_', $wgContLang->uc( $term ) );
+	$term4 = str_replace( ' ', '_', $wgContLang->ucfirst( $term2 ) );
 	$term = $term1;
 
@@ -119,5 +124,8 @@
 	$res = $db->select( 'page', 'page_title',
 	array(  'page_namespace' => $ns,
-	"LOWER(page_title) LIKE '%". $db->strencode( $term2 ) ."%'" ),
+	"page_title LIKE '%". $db->strencode( $term1 ) ."%' ".
+	"OR (page_title LIKE '%". $db->strencode( $term2 ) ."%') ".
+	"OR (page_title LIKE '%". $db->strencode( $term3 ) ."%') ".
+	"OR (page_title LIKE '%". $db->strencode( $term4 ) ."%') " ),
 	"wfSajaxSearch",
 	array( 'LIMIT' => $limit+1 )
