Skip to content

Commit

Permalink
Solve error related to json path
Browse files Browse the repository at this point in the history
  • Loading branch information
paugnu committed Feb 28, 2016
1 parent b5f9114 commit bd2bf5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion single-programa.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$baixades = $post->get_field( 'baixada' );

//Download count
$download_full = json_decode(file_get_contents('http://softcatala.local/full.json'), true);
$download_full = json_decode(file_get_contents(get_home_url().'full.json'), true);
$index = array_search($post->idrebost, array_column($download_full, 'idrebost'));
$context['total_downloads'] = $download_full[$index]['total'];

Expand Down
1 change: 0 additions & 1 deletion templates/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<script type="text/javascript">
var currentLocation = window.location;
</script>
<p>{{qux}}</p>
<!-- .main .wrap-blanc -->
<main class="main blog wrap-blanc">
<!-- .main-header -->
Expand Down

0 comments on commit bd2bf5f

Please sign in to comment.