Make new_channel call, populate channel list

This commit is contained in:
Paul Kirby 2018-10-04 19:43:19 -05:00
parent 41b3c58d41
commit 8839003fca
2 changed files with 7 additions and 5 deletions

View file

@ -59,11 +59,11 @@ class LBRY_Daemon
'channel_new',
array(
'channel_name' => $channel_name,
'amount' => $bid_amount
'amount' => floatval($bid_amount)
)
);
error_log($result);
return null;
return json_decode($result)->result;
}
/**

View file

@ -20,9 +20,11 @@ $channel_list = $LBRY->daemon->channel_list();
<h2>Your Publishable Channels</h2>
<?php if ($channel_list): ?>
<?php foreach ($channel as $key => $value): ?>
<?php endforeach; ?>
<ul class="lbry-channel-list">
<?php foreach ($channel_list as $channel): ?>
<li><?= $channel->name ?></li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<p>Looks like you haven't added any channels yet, feel free to do so below:</p>
<?php endif; ?>