Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
306
Merge Requests
306
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
8ee63be5
Commit
8ee63be5
authored
May 28, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2003452
by baldwinlouie: Rename Views method get_pager_total() to getPagerTotal().
parent
be273778
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php
...les/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php
+2
-2
No files found.
core/modules/views/lib/Drupal/views/Plugin/views/pager/SqlBase.php
View file @
8ee63be5
...
...
@@ -276,7 +276,7 @@ function set_current_page($number = NULL) {
$this
->
current_page
=
max
(
0
,
intval
(
$pager_page_array
[
$this
->
options
[
'id'
]]));
}
function
get_pager_t
otal
()
{
public
function
getPagerT
otal
()
{
if
(
$items_per_page
=
intval
(
$this
->
get_items_per_page
()))
{
return
ceil
(
$this
->
total_items
/
$items_per_page
);
}
...
...
@@ -309,7 +309,7 @@ function update_page_info() {
// Set the item count for the pager.
$pager_total_items
[
$this
->
options
[
'id'
]]
=
$this
->
total_items
;
// Calculate and set the count of available pages.
$pager_total
[
$this
->
options
[
'id'
]]
=
$this
->
get
_pager_t
otal
();
$pager_total
[
$this
->
options
[
'id'
]]
=
$this
->
get
PagerT
otal
();
// See if the requested page was within range:
if
(
$this
->
current_page
>=
$pager_total
[
$this
->
options
[
'id'
]])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment