mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
parent
32636ec39d
commit
f8c9933f10
@ -1458,7 +1458,7 @@ class media_admin_ui extends e_admin_ui
|
||||
*/
|
||||
function videoTab($parm='')
|
||||
{
|
||||
// $apiKey = e107::pref('core','youtube_apikey');
|
||||
$apiKey = e107::pref('core','youtube_apikey');
|
||||
|
||||
$searchQry = $this->getQuery('search');
|
||||
|
||||
@ -1525,7 +1525,7 @@ class media_admin_ui extends e_admin_ui
|
||||
$accFeed = "https://www.googleapis.com/youtube/v3/channels?part=contentDetails&forUsername=".$defaultAccount."&key=".$apiKey;
|
||||
$accData = e107::getFile()->getRemoteContent($accFeed);
|
||||
$accData = json_decode($accData,true);
|
||||
$channelID = null;
|
||||
$channelID = e107::pref('core', 'youtube_default_account');
|
||||
|
||||
foreach($accData['items'] as $val)
|
||||
{
|
||||
@ -3041,4 +3041,4 @@ if(!e_AJAX_REQUEST) require_once("footer.php");
|
||||
|
||||
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user