diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php index 3e19f26..66d4c97 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Mini.php @@ -62,7 +62,7 @@ public function query() { // there is another page. $limit = $this->view->query->getLimit(); $limit += 1; - $this->view->query->set_limit($limit); + $this->view->query->setLimit($limit); } } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Some.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Some.php index 835ac7d..61b3a90 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/Some.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/Some.php @@ -69,7 +69,7 @@ function use_count_query() { } public function query() { - $this->view->query->set_limit($this->options['items_per_page']); + $this->view->query->setLimit($this->options['items_per_page']); $this->view->query->set_offset($this->options['offset']); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php index f7eb34b..30d0053 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php @@ -237,7 +237,7 @@ public function query() { } } - $this->view->query->set_limit($limit); + $this->view->query->setLimit($limit); $this->view->query->set_offset($offset); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/query/QueryPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/query/QueryPluginBase.php index e78516d..6fbcfca 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/query/QueryPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/query/QueryPluginBase.php @@ -99,7 +99,7 @@ public function summaryTitle() { /** * Set a LIMIT on the query, specifying a maximum number of results. */ - function set_limit($limit) { + public function setLimit($limit) { $this->limit = $limit; } diff --git a/core/modules/views/lib/Drupal/views/Tests/Plugin/QueryTest.php b/core/modules/views/lib/Drupal/views/Tests/Plugin/QueryTest.php index 82d9047..7da2672 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Plugin/QueryTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/QueryTest.php @@ -80,7 +80,7 @@ protected function queryMethodsTests() { $view->initQuery(); $this->assertFalse($view->query->getLimit(), 'Default to an empty limit.'); $rand_number = rand(5, 10); - $view->query->set_limit($rand_number); + $view->query->setLimit($rand_number); $this->assertEqual($view->query->getLimit(), $rand_number, 'set_limit adapts the amount of items.'); }