Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
b7948e48
Commit
b7948e48
authored
Sep 26, 2013
by
Jin Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary lines
parent
d9b256d7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
ActiveDataProvider.php
framework/yii/data/ActiveDataProvider.php
+0
-1
ArrayDataProvider.php
framework/yii/data/ArrayDataProvider.php
+0
-1
No files found.
framework/yii/data/ActiveDataProvider.php
View file @
b7948e48
...
...
@@ -156,7 +156,6 @@ class ActiveDataProvider extends DataProvider
throw
new
InvalidConfigException
(
'The "query" property must be an instance of Query or its subclass.'
);
}
if
((
$pagination
=
$this
->
getPagination
())
!==
false
)
{
$pagination
->
totalCount
=
$this
->
getTotalCount
();
$this
->
query
->
limit
(
$pagination
->
getLimit
())
->
offset
(
$pagination
->
getOffset
());
}
if
((
$sort
=
$this
->
getSort
())
!==
false
)
{
...
...
framework/yii/data/ArrayDataProvider.php
View file @
b7948e48
...
...
@@ -114,7 +114,6 @@ class ArrayDataProvider extends DataProvider
}
if
((
$pagination
=
$this
->
getPagination
())
!==
false
)
{
$pagination
->
totalCount
=
$this
->
getTotalCount
();
$models
=
array_slice
(
$models
,
$pagination
->
getOffset
(),
$pagination
->
getLimit
());
}
...
...
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