diff --git a/system/includes/functions.php b/system/includes/functions.php
index f538494..6fbe63c 100644
--- a/system/includes/functions.php
+++ b/system/includes/functions.php
@@ -572,7 +572,7 @@ function get_pages($pages, $page = 1, $perpage = 0)
$auto = config('toc.automatic');
$counter = config('views.counter');
-
+
if ($counter == 'true') {
$viewsFile = "content/data/views.json";
if (file_exists($viewsFile)) {
@@ -648,10 +648,10 @@ function get_subpages($sub_pages, $page = 1, $perpage = 0)
}
$tmp = array();
-
+
$auto = config('toc.automatic');
$counter = config('views.counter');
-
+
if ($counter == 'true') {
$viewsFile = "content/data/views.json";
if (file_exists($viewsFile)) {
@@ -3777,6 +3777,7 @@ function generate_meta($type = null, $object = null)
if (empty($defaultImg)) {
$defaultImg = site_url() . 'system/resources/images/logo-big.png';
}
+ $fbApp = config('fb.appid');
$facebook = config('social.facebook');
$twitter = config('social.twitter');
if (is_null($object)) {
@@ -3796,6 +3797,9 @@ function generate_meta($type = null, $object = null)
$twitter = parse_url($twitter);
$tags .= '' . "\n";
}
+ if (!empty($fbApp)) {
+ $tags .= '' . "\n";
+ }
} else {
if(!empty($object->image)) {
$image = $object->image;
@@ -3820,7 +3824,7 @@ function generate_meta($type = null, $object = null)
$tags .= '' . "\n";
}
if(!empty($facebook)) {
- $tags .= ' ' . "\n";
+ $tags .= '' . "\n";
}
if(!empty($twitter)) {
$twitter = parse_url($twitter);
@@ -3831,6 +3835,9 @@ function generate_meta($type = null, $object = null)
$tags .= '' . "\n";
$tags .= '' . "\n";
$tags .= '' . "\n";
+ if (!empty($fbApp)) {
+ $tags .= '' . "\n";
+ }
}
return $tags;