1
0
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:
Cameron
2016-12-19 17:57:03 -08:00
parent 098f386c19
commit a3a9ffa1f7
2 changed files with 9 additions and 3 deletions

View File

@@ -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>";
} }

View File

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