Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
363b7c54
Commit
363b7c54
authored
Apr 01, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'staging' into develop
parents
369ecd80
63ff0499
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
10 deletions
+24
-10
artisan
+1
-1
changes.md
+13
-1
laravel/database/query/grammars/grammar.php
+7
-5
laravel/response.php
+1
-1
paths.php
+1
-1
public/index.php
+1
-1
No files found.
artisan
View file @
363b7c54
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
* Laravel - A PHP Framework For Web Artisans
*
*
* @package Laravel
* @package Laravel
* @version 3.1.
3
* @version 3.1.
4
* @author Taylor Otwell <taylorotwell@gmail.com>
* @author Taylor Otwell <taylorotwell@gmail.com>
* @link http://laravel.com
* @link http://laravel.com
*/
*/
...
...
changes.md
View file @
363b7c54
...
@@ -4,6 +4,8 @@
...
@@ -4,6 +4,8 @@
-
[
Laravel 3.2
](
#3.2
)
-
[
Laravel 3.2
](
#3.2
)
-
[
Upgrading From 3.1
](
#upgrade-3.2
)
-
[
Upgrading From 3.1
](
#upgrade-3.2
)
-
[
Laravel 3.1.4
](
#3.1.4
)
-
[
Upgrading From 3.1.3
](
#upgrade-3.1.4
)
-
[
Laravel 3.1.3
](
#3.1.3
)
-
[
Laravel 3.1.3
](
#3.1.3
)
-
[
Upgrading From 3.1.2
](
#uprade-3.1.3
)
-
[
Upgrading From 3.1.2
](
#uprade-3.1.3
)
-
[
Laravel 3.1.2
](
#3.1.2
)
-
[
Laravel 3.1.2
](
#3.1.2
)
...
@@ -13,7 +15,6 @@
...
@@ -13,7 +15,6 @@
-
[
Laravel 3.1
](
#3.1
)
-
[
Laravel 3.1
](
#3.1
)
-
[
Upgrading From 3.0
](
#upgrade-3.1
)
-
[
Upgrading From 3.0
](
#upgrade-3.1
)
<<<<<<< HEAD
<a
name=
"3.2"
></a>
<a
name=
"3.2"
></a>
## Laravel 3.2
## Laravel 3.2
...
@@ -29,6 +30,17 @@
...
@@ -29,6 +30,17 @@
-
Replace the
**laravel**
folder.
-
Replace the
**laravel**
folder.
-
Add new
**vendors**
folder.
-
Add new
**vendors**
folder.
<a
name=
"3.1.4"
></a>
## Laravel 3.1.4
-
Fixes Response header casing bug.
-
Fixes SQL "where in" (...) short-cut bug.
<a
name=
"upgrade-3.1.4"
></a>
## Upgrading From 3.1.3
-
Replace the
**laravel**
folder.
<a
name=
"3.1.3"
></a>
<a
name=
"3.1.3"
></a>
## Laravel 3.1.3
## Laravel 3.1.3
...
...
laravel/database/query/grammars/grammar.php
View file @
363b7c54
...
@@ -397,22 +397,24 @@ class Grammar extends \Laravel\Database\Grammar {
...
@@ -397,22 +397,24 @@ class Grammar extends \Laravel\Database\Grammar {
* @param array $bindings
* @param array $bindings
* @return string
* @return string
*/
*/
public
function
shortcut
(
$sql
,
$bindings
)
public
function
shortcut
(
$sql
,
&
$bindings
)
{
{
// Laravel provides an easy short-cut notation for writing raw WHERE IN
// Laravel provides an easy short-cut notation for writing raw WHERE IN
// statements. If (...) is in the query, it will be replaced with the
// statements. If (...) is in the query, it will be replaced with the
// correct number of parameters based on the bindings.
// correct number of parameters based on the
query
bindings.
if
(
strpos
(
$sql
,
'(...)'
)
!==
false
)
if
(
strpos
(
$sql
,
'(...)'
)
!==
false
)
{
{
for
(
$i
=
0
;
$i
<
count
(
$bindings
);
$i
++
)
for
(
$i
=
0
;
$i
<
count
(
$bindings
);
$i
++
)
{
{
// If the binding is an array, we can just assume it's used to
// If the binding is an array, we can just assume it's used to
fill a
//
fill a "where in" condition, so we will just replace the
//
where in condition, so we'll just replace the next place-holder
//
next place-holder in the query with the constraint
.
//
in the query with the constraint and splice the bindings
.
if
(
is_array
(
$bindings
[
$i
]))
if
(
is_array
(
$bindings
[
$i
]))
{
{
$parameters
=
$this
->
parameterize
(
$bindings
[
$i
]);
$parameters
=
$this
->
parameterize
(
$bindings
[
$i
]);
array_splice
(
$bindings
,
$i
,
1
,
$bindings
[
$i
]);
$sql
=
preg_replace
(
'~\(\.\.\.\)~'
,
"(
{
$parameters
}
)"
,
$sql
,
1
);
$sql
=
preg_replace
(
'~\(\.\.\.\)~'
,
"(
{
$parameters
}
)"
,
$sql
,
1
);
}
}
}
}
...
...
laravel/response.php
View file @
363b7c54
...
@@ -89,7 +89,7 @@ class Response {
...
@@ -89,7 +89,7 @@ class Response {
{
{
$this
->
status
=
$status
;
$this
->
status
=
$status
;
$this
->
content
=
$content
;
$this
->
content
=
$content
;
$this
->
headers
=
$headers
;
$this
->
headers
=
array_change_key_case
(
$headers
)
;
}
}
/**
/**
...
...
paths.php
View file @
363b7c54
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
* Laravel - A PHP Framework For Web Artisans
*
*
* @package Laravel
* @package Laravel
* @version 3.1.
3
* @version 3.1.
4
* @author Taylor Otwell <taylorotwell@gmail.com>
* @author Taylor Otwell <taylorotwell@gmail.com>
* @link http://laravel.com
* @link http://laravel.com
*/
*/
...
...
public/index.php
View file @
363b7c54
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Laravel - A PHP Framework For Web Artisans
* Laravel - A PHP Framework For Web Artisans
*
*
* @package Laravel
* @package Laravel
* @version 3.1.
3
* @version 3.1.
4
* @author Taylor Otwell <taylorotwell@gmail.com>
* @author Taylor Otwell <taylorotwell@gmail.com>
* @link http://laravel.com
* @link http://laravel.com
*/
*/
...
...
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