From f8c9933f108d1620201f50db8e3b65e0a2d8f5a1 Mon Sep 17 00:00:00 2001 From: Travis Thoene Date: Sun, 14 Feb 2016 13:44:00 -0600 Subject: [PATCH] #1357 Youtube API Fix YouTube function in Media Manager --- e107_admin/image.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index e11158df1..eab579d13 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -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"); -?> \ No newline at end of file +?>