Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
8711b287
Commit
8711b287
authored
Nov 25, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed code formatting
parent
18fc6b4a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Pager.php
lib/Doctrine/Pager.php
+2
-3
Jumping.php
lib/Doctrine/Pager/Range/Jumping.php
+1
-1
No files found.
lib/Doctrine/Pager.php
View file @
8711b287
...
@@ -184,8 +184,7 @@ class Doctrine_Pager
...
@@ -184,8 +184,7 @@ class Doctrine_Pager
{
{
$this
->
lastPage
=
$page
;
$this
->
lastPage
=
$page
;
if
(
$this
->
getPage
()
>
$page
)
if
(
$this
->
getPage
()
>
$page
)
{
{
$this
->
_setPage
(
$page
);
$this
->
_setPage
(
$page
);
}
}
}
}
...
@@ -346,7 +345,7 @@ class Doctrine_Pager
...
@@ -346,7 +345,7 @@ class Doctrine_Pager
protected
function
setQuery
(
$query
)
protected
function
setQuery
(
$query
)
{
{
if
(
is_string
(
$query
))
{
if
(
is_string
(
$query
))
{
$query
=
Doctrine_Query
::
create
()
->
from
(
$query
);
$query
=
Doctrine_Query
::
create
()
->
parseQuery
(
$query
);
}
}
$this
->
query
=
$query
;
$this
->
query
=
$query
;
...
...
lib/Doctrine/Pager/Range/Jumping.php
View file @
8711b287
...
@@ -102,7 +102,7 @@ class Doctrine_Pager_Range_Jumping extends Doctrine_Pager_Range
...
@@ -102,7 +102,7 @@ class Doctrine_Pager_Range_Jumping extends Doctrine_Pager_Range
$endPage
=
(
$startPage
+
$this
->
getChunkLength
())
-
1
;
$endPage
=
(
$startPage
+
$this
->
getChunkLength
())
-
1
;
// Check for EndPage out-range
// Check for EndPage out-range
if
(
$endPage
>
$pager
->
getLastPage
()
)
{
if
(
$endPage
>
$pager
->
getLastPage
()
)
{
$endPage
=
$pager
->
getLastPage
();
$endPage
=
$pager
->
getLastPage
();
}
}
...
...
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