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
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
PSDI Army
yii2
Commits
c906d433
Commit
c906d433
authored
Mar 05, 2014
by
AlexGx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix php5.4 array syntax
parent
1982efbd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
OpenId.php
extensions/authclient/OpenId.php
+1
-1
ActiveField.php
extensions/gii/components/ActiveField.php
+1
-1
No files found.
extensions/authclient/OpenId.php
View file @
c906d433
...
@@ -239,7 +239,7 @@ class OpenId extends BaseClient implements ClientInterface
...
@@ -239,7 +239,7 @@ class OpenId extends BaseClient implements ClientInterface
curl_setopt
(
$curl
,
CURLOPT_HEADER
,
false
);
curl_setopt
(
$curl
,
CURLOPT_HEADER
,
false
);
curl_setopt
(
$curl
,
CURLOPT_SSL_VERIFYPEER
,
false
);
curl_setopt
(
$curl
,
CURLOPT_SSL_VERIFYPEER
,
false
);
curl_setopt
(
$curl
,
CURLOPT_RETURNTRANSFER
,
true
);
curl_setopt
(
$curl
,
CURLOPT_RETURNTRANSFER
,
true
);
curl_setopt
(
$curl
,
CURLOPT_HTTPHEADER
,
array
(
'Accept: application/xrds+xml, */*'
)
);
curl_setopt
(
$curl
,
CURLOPT_HTTPHEADER
,
[
'Accept: application/xrds+xml, */*'
]
);
if
(
$this
->
verifyPeer
!==
null
)
{
if
(
$this
->
verifyPeer
!==
null
)
{
curl_setopt
(
$curl
,
CURLOPT_SSL_VERIFYPEER
,
$this
->
verifyPeer
);
curl_setopt
(
$curl
,
CURLOPT_SSL_VERIFYPEER
,
$this
->
verifyPeer
);
...
...
extensions/gii/components/ActiveField.php
View file @
c906d433
...
@@ -64,7 +64,7 @@ class ActiveField extends \yii\widgets\ActiveField
...
@@ -64,7 +64,7 @@ class ActiveField extends \yii\widgets\ActiveField
static
$counter
=
0
;
static
$counter
=
0
;
$this
->
inputOptions
[
'class'
]
.=
' typeahead-'
.
(
++
$counter
);
$this
->
inputOptions
[
'class'
]
.=
' typeahead-'
.
(
++
$counter
);
foreach
(
$data
as
&
$item
)
{
foreach
(
$data
as
&
$item
)
{
$item
=
array
(
'word'
=>
$item
)
;
$item
=
[
'word'
=>
$item
]
;
}
}
$this
->
form
->
getView
()
->
registerJs
(
"yii.gii.autocomplete(
$counter
, "
.
Json
::
encode
(
$data
)
.
");"
);
$this
->
form
->
getView
()
->
registerJs
(
"yii.gii.autocomplete(
$counter
, "
.
Json
::
encode
(
$data
)
.
");"
);
return
$this
;
return
$this
;
...
...
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