Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
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
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
8e26d2d7
Commit
8e26d2d7
authored
Apr 23, 2023
by
halweg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix : ins fix
parent
fc7d0886
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
app/code/Joshine/InstagramFeed/Block/MediaFeed.php
+5
-0
app/code/Joshine/InstagramFeed/etc/adminhtml/system.xml
+0
-6
No files found.
app/code/Joshine/InstagramFeed/Block/MediaFeed.php
View file @
8e26d2d7
...
...
@@ -99,6 +99,7 @@ class MediaFeed extends Template {
$url
=
$this
->
apiAddress
->
getMediaUrl
(
$token
,
$uid
);
try
{
$this
->
getCurlClient
()
->
get
(
$url
);
$this
->
getCurlClient
()
->
setOptions
([
...
...
@@ -108,6 +109,10 @@ class MediaFeed extends Template {
if
(
$this
->
getCurlClient
()
->
getStatus
()
!=
200
)
{
return
[];
}
}
catch
(
\Exception
$e
)
{
$this
->
_logger
->
error
(
$e
->
getMessage
());
return
[];
}
return
$this
->
jsonDecoder
->
decode
(
$this
->
getCurlClient
()
->
getBody
());
}
...
...
app/code/Joshine/InstagramFeed/etc/adminhtml/system.xml
View file @
8e26d2d7
...
...
@@ -17,15 +17,9 @@
</field>
<field
id=
"appid"
translate=
"label comment"
type=
"text"
sortOrder=
"45"
showInDefault=
"1"
showInWebsite=
"1"
showInStore=
"1"
>
<label>
AppId
</label>
<depends>
<field
id=
"enabled"
>
1
</field>
</depends>
</field>
<field
id=
"app_secret"
translate=
"label comment"
type=
"password"
sortOrder=
"45"
showInDefault=
"1"
showInWebsite=
"1"
showInStore=
"1"
>
<label>
App Secret
</label>
<depends>
<field
id=
"enabled"
>
1
</field>
</depends>
</field>
</group>
<group
id=
"display"
translate=
"label comment"
type=
"text"
sortOrder=
"20"
showInDefault=
"1"
showInWebsite=
"1"
showInStore=
"1"
>
...
...
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