case-insensitive wiki pages
This commit is contained in:
parent
5691d1c3ad
commit
9c062f3385
1 changed files with 3 additions and 3 deletions
|
@ -226,11 +226,11 @@ class Wiki extends Extension {
|
||||||
private function get_page($title, $revision=-1) {
|
private function get_page($title, $revision=-1) {
|
||||||
global $database;
|
global $database;
|
||||||
// first try and get the actual page
|
// first try and get the actual page
|
||||||
$row = $database->get_row("
|
$row = $database->get_row($database->scoreql_to_sql("
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM wiki_pages
|
FROM wiki_pages
|
||||||
WHERE title LIKE :title
|
WHERE SCORE_STRNORM(title) LIKE SCORE_STRNORM(:title)
|
||||||
ORDER BY revision DESC",
|
ORDER BY revision DESC"),
|
||||||
array("title"=>$title));
|
array("title"=>$title));
|
||||||
|
|
||||||
// fall back to wiki:default
|
// fall back to wiki:default
|
||||||
|
|
Reference in a new issue