Difference between revisions of "User:Subfader/ignorecase titlematch"

From FollowTheScore
Jump to: navigation, search
Line 32: Line 32:
 
}}
 
}}
 
|}
 
|}
 
== Solution ==
 
 
Add <code>WHERE BINARY </code> instead of <code>LOWER(CAST(...))</code>: http://stackoverflow.com/questions/7857669/mysql-case-sensitive-query
 
 
For titlematch:
 
if ($bIgnoreCase) $sSqlWhere .= ' BINARY ' . $sPageTable.'.page_title' . $sTitleMatchMode .  $dbr->addQuotes($link) ;
 
 
Would need to be added to every <code>$bIgnoreCase</code> I guess.
 

Revision as of 16:39, 16 November 2014

{{#dpl:
 |debug=3
 |namespace=
 |titlematch=%LoadTest%
 |count=10
}}

{{#dpl:
 |debug=3
 |namespace=
 |titlematch=%loadtest%
 |ignorecase=true
 |count=10
}}

Extension:DynamicPageList (DPL), version 3.2.1: Warning: No results.