Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
e03cac18
Commit
e03cac18
authored
May 29, 2013
by
Alex Pott
Browse files
Issue
#2002868
by baldwinlouie: Rename Views method has_more_records() to hasMoreRecords().
parent
876ee0a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php
View file @
e03cac18
...
...
@@ -2422,7 +2422,7 @@ public function renderPager() {
* Render the 'more' link
*/
public
function
renderMoreLink
()
{
if
(
$this
->
usesMore
()
&&
(
$this
->
useMoreAlways
()
||
(
!
empty
(
$this
->
view
->
pager
)
&&
$this
->
view
->
pager
->
has
_m
ore
_r
ecords
())))
{
if
(
$this
->
usesMore
()
&&
(
$this
->
useMoreAlways
()
||
(
!
empty
(
$this
->
view
->
pager
)
&&
$this
->
view
->
pager
->
has
M
ore
R
ecords
())))
{
$path
=
$this
->
getPath
();
if
(
$this
->
getOption
(
'link_display'
)
==
'custom_url'
&&
$override_path
=
$this
->
getOption
(
'link_url'
))
{
...
...
core/modules/views/lib/Drupal/views/Plugin/views/pager/PagerPluginBase.php
View file @
e03cac18
...
...
@@ -234,7 +234,7 @@ function render($input) { }
*
* This is primarily used to control the display of a more link.
*/
function
has
_m
ore
_r
ecords
()
{
public
function
has
M
ore
R
ecords
()
{
return
$this
->
get_items_per_page
()
&&
$this
->
total_items
>
(
intval
(
$this
->
current_page
)
+
1
)
*
$this
->
get_items_per_page
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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