1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-29 02:40:25 +02:00
Fix YouTube function in Media Manager
This commit is contained in:
Travis Thoene
2016-02-14 13:44:00 -06:00
parent 32636ec39d
commit f8c9933f10

View File

@@ -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");
?>
?>