mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 09:37:26 +00:00
Fixed error message
This commit is contained in:
parent
0fdc535a53
commit
3c9e5601d4
2 changed files with 14 additions and 13 deletions
20
lib/thirdparty/LBRY.class.php
vendored
20
lib/thirdparty/LBRY.class.php
vendored
|
@ -53,23 +53,23 @@ class LBRY
|
|||
public static function connectYoutube($channel_name, $immediateSync = false)
|
||||
{
|
||||
// Uncomment next line for production and comment other return
|
||||
return Curl::post(static::getApiUrl('/yt/new'), [
|
||||
'desired_lbry_channel_name' => $channel_name,
|
||||
'immediate_sync' => $immediateSync,
|
||||
'type' => 'sync'
|
||||
], [
|
||||
'json_response' => true
|
||||
]);
|
||||
|
||||
// Uncomment next line for development and comment other return (this also requires the testnet API)
|
||||
// return Curl::post(static::getApiUrl('/yt/new'), [
|
||||
// 'desired_lbry_channel_name' => $channel_name,
|
||||
// 'immediate_sync' => $immediateSync,
|
||||
// 'return_url' => 'http://localhost:8000/youtube/status/',
|
||||
// 'type' => 'sync'
|
||||
// ], [
|
||||
// 'json_response' => true
|
||||
// ]);
|
||||
|
||||
// Uncomment next line for development and comment other return (this also requires the testnet API)
|
||||
return Curl::post(static::getApiUrl('/yt/new'), [
|
||||
'desired_lbry_channel_name' => $channel_name,
|
||||
'immediate_sync' => $immediateSync,
|
||||
'return_url' => 'http://localhost:8000/youtube/status/',
|
||||
'type' => 'sync'
|
||||
], [
|
||||
'json_response' => true
|
||||
]);
|
||||
}
|
||||
|
||||
// Check the sync status
|
||||
|
|
|
@ -35,9 +35,10 @@
|
|||
<section class="section channel">
|
||||
<div class="inner-wrap">
|
||||
<?php if (preg_match('/^[A-Za-z0-9._%+-]+@plusgoogle.com$/', $statusData['email'])): ?>
|
||||
<div id="email-google-plus-error" class="error">
|
||||
Your email address is set as <?php echo $statusData['email']; ?>.<br>If this is not your email address, please <span id="scroll_email">change it below</span>.
|
||||
</div>
|
||||
<p class="error-block" id="email-google-plus-error">
|
||||
Your email address is set as <?php echo $statusData['email']; ?>.<br/>
|
||||
If this is not your email address, please change it below.
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<h2><?php echo $isSyncAgreed && $isRewardClaimed ? "You're all set!" : "Almost done!" ?></h2>
|
||||
|
|
Loading…
Add table
Reference in a new issue