mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 04:38:27 +01:00
Fixes #964 - Fatal error on news page when social plugin not installed.
This commit is contained in:
parent
7661394c04
commit
a1d7fbd8c5
8
news.php
8
news.php
@ -832,8 +832,12 @@ else
|
||||
|
||||
// Set the Values for the social shortcode usage.
|
||||
$socialArray = array('url'=>e107::getUrl()->create('news/view/item', $news, 'full=1'), 'title'=>$tp->toText($news['news_title']));
|
||||
e107::getScBatch('social')->setVars($socialArray);
|
||||
|
||||
$socialObj = e107::getScBatch('social');
|
||||
|
||||
if(is_object($socialObj))
|
||||
{
|
||||
$socialObj->setVars($socialArray);
|
||||
}
|
||||
|
||||
|
||||
if(function_exists("news_style")) // BC
|
||||
|
Loading…
x
Reference in New Issue
Block a user