mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 18:24:57 +02:00
Fix issue processwire/processwire-issues#1934
This commit is contained in:
@@ -995,7 +995,7 @@ class ProcessPageLister extends Process implements ConfigurableModule {
|
|||||||
// limit is specified in both the selector and the arguments.
|
// limit is specified in both the selector and the arguments.
|
||||||
// we don't allow specifying limit in selector if one is specified in the arguments
|
// we don't allow specifying limit in selector if one is specified in the arguments
|
||||||
$selector = preg_replace('/[, ]*\blimit=\d+/i', '', $selector);
|
$selector = preg_replace('/[, ]*\blimit=\d+/i', '', $selector);
|
||||||
if($limit > 0) $selector .= ", limit=" . (int) $limit;
|
if($limit > -1) $selector .= ", limit=" . (int) $limit;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(stripos($selector, 'sort=') !== false) {
|
if(stripos($selector, 'sort=') !== false) {
|
||||||
|
Reference in New Issue
Block a user