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