mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
ensure # on homepage is a #
This commit is contained in:
parent
99df9a18ec
commit
b7b9b42c99
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ class CreditApi
|
|||
{
|
||||
$rawJSON = file_get_contents('https://spreadsheets.google.com/feeds/cells/1iOC1o5jq_4ySwRzsy2tZPPltw6Tbky2e3lDFdsWV8dU/okf1n52/public/full/R1C1?alt=json');
|
||||
$json = $rawJSON ? json_decode($rawJSON, true) : [];
|
||||
return isset($json['entry']) && isset($json['entry']['content']) ? $json['entry']['content']['$t'] : -1;
|
||||
return isset($json['entry']) && isset($json['entry']['content']) && is_numeric($json['entry']['content']['$t'] ) ?
|
||||
$json['entry']['content']['$t'] :
|
||||
6687; //fallback #
|
||||
}
|
||||
|
||||
public static function getCreditsPerDollar($days)
|
||||
|
|
Loading…
Add table
Reference in a new issue