Browse Source

CS fix.

pull/9/head
Ned Zimmerman 7 years ago
parent
commit
24cf31e451
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 4
      app/controllers/FrontPage.php

4
app/controllers/FrontPage.php

@ -57,7 +57,9 @@ class FrontPage extends Controller
public static function latestBooks($offset = null)
{
$path = ($offset) ? "/wp-json/pressbooks/v2/books?per_page=3&page=$offset" : '/wp-json/pressbooks/v2/books?per_page=3';
$path = ($offset) ?
"/wp-json/pressbooks/v2/books?per_page=3&page=$offset" :
'/wp-json/pressbooks/v2/books?per_page=3';
$books = wp_remote_get(network_home_url($path));
$books = json_decode($books['body'], true);
return $books;

Loading…
Cancel
Save