mirror of
https://github.com/e107inc/e107.git
synced 2025-05-02 18:27:52 +02:00
Social: Fix for facebook comments not loading after news upgrade.
This commit is contained in:
parent
098f386c19
commit
a3a9ffa1f7
@ -49,7 +49,7 @@ class social_comment
|
||||
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>";
|
||||
}
|
||||
|
@ -1,15 +1,21 @@
|
||||
<?php
|
||||
|
||||
if(USER_AREA)
|
||||
if(e_ADMIN_AREA !==true)
|
||||
{
|
||||
e107::css('social', 'css/fontello.css');
|
||||
e107::css('social' ,'css/social.css');
|
||||
|
||||
$appID = false;
|
||||
|
||||
$social = e107::pref('core','social_login');
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user