limit/offset incompatability blah
This commit is contained in:
parent
43486ab5fa
commit
a295c210a2
@ -70,8 +70,13 @@ class AliasEditor implements Extension {
|
|||||||
|
|
||||||
$alias_per_page = $config->get_int('alias_items_per_page', 30);
|
$alias_per_page = $config->get_int('alias_items_per_page', 30);
|
||||||
|
|
||||||
$alias = $database->db->GetAssoc(
|
if($database->engine->name == "mysql") {
|
||||||
"SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC OFFSET ? LIMIT ?",
|
$query = "SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC LIMIT ?, ?";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$query = "SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC OFFSET ? LIMIT ?";
|
||||||
|
}
|
||||||
|
$alias = $database->db->GetAssoc($query,
|
||||||
array($page_number * $alias_per_page, $alias_per_page)
|
array($page_number * $alias_per_page, $alias_per_page)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user