mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Social: Fix for facebook comments not loading after news upgrade.
This commit is contained in:
@@ -49,7 +49,7 @@ class social_comment
|
|||||||
function facebook($data)
|
function facebook($data)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!deftrue('SOCIAL_FACEBOOK_INIT'))
|
if(!deftrue('SOCIAL_FACEBOOK_INIT') && ADMIN)
|
||||||
{
|
{
|
||||||
return "<div class='alert alert-important alert-danger'>Unable to render comments. Missing Facebook appID.</div>";
|
return "<div class='alert alert-important alert-danger'>Unable to render comments. Missing Facebook appID.</div>";
|
||||||
}
|
}
|
||||||
|
@@ -1,15 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(USER_AREA)
|
if(e_ADMIN_AREA !==true)
|
||||||
{
|
{
|
||||||
e107::css('social', 'css/fontello.css');
|
e107::css('social', 'css/fontello.css');
|
||||||
e107::css('social' ,'css/social.css');
|
e107::css('social' ,'css/social.css');
|
||||||
|
|
||||||
|
$appID = false;
|
||||||
|
|
||||||
$social = e107::pref('core','social_login');
|
$social = e107::pref('core','social_login');
|
||||||
|
|
||||||
if(!empty($social) && is_array($social))
|
if(!empty($social) && is_array($social))
|
||||||
{
|
{
|
||||||
$appID = vartrue($social['Facebook']['keys']['id']);
|
if(!empty($social['Facebook']['keys']['id']))
|
||||||
|
{
|
||||||
|
$appID = $social['Facebook']['keys']['id'];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$ogImage = e107::pref('social','og_image', false);
|
$ogImage = e107::pref('social','og_image', false);
|
||||||
|
Reference in New Issue
Block a user