Issue #2002490 by themic8, jeroen12345: Rename Views method execute_count_query() to executeCountQuery().
parent
960eb8280f
commit
3a4632cece
|
@ -75,7 +75,7 @@ class None extends PagerPluginBase {
|
|||
return 0;
|
||||
}
|
||||
|
||||
function execute_count_query(&$count_query) {
|
||||
public function executeCountQuery(&$count_query) {
|
||||
// If we are displaying all items, never count. But we can update the count in post_execute.
|
||||
}
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ abstract class PagerPluginBase extends PluginBase {
|
|||
* Execute the count query, which will be done just prior to the query
|
||||
* itself being executed.
|
||||
*/
|
||||
function execute_count_query(&$count_query) {
|
||||
public function executeCountQuery(&$count_query) {
|
||||
$this->total_items = $count_query->execute()->fetchField();
|
||||
if (!empty($this->options['offset'])) {
|
||||
$this->total_items -= $this->options['offset'];
|
||||
|
|
|
@ -1478,7 +1478,7 @@ class Sql extends QueryPluginBase {
|
|||
|
||||
try {
|
||||
if ($view->pager->use_count_query() || !empty($view->get_total_rows)) {
|
||||
$view->pager->execute_count_query($count_query);
|
||||
$view->pager->executeCountQuery($count_query);
|
||||
}
|
||||
|
||||
// Let the pager modify the query to add limits.
|
||||
|
|
Loading…
Reference in New Issue