FIX OG
This commit is contained in:
parent
a730842c1a
commit
8dd3d4d3b8
|
|
@ -39,8 +39,9 @@ class Helper
|
|||
public static function buildOG($point)
|
||||
{
|
||||
$og = array();
|
||||
$og['title'] = $point->name . ' [wikipoints.ru]';
|
||||
$og['description'] = mb_substr($point->description, 0, 200).'...';
|
||||
$og['title'] = str_replace('"', 'ʺ', $point->name) . ' [wikipoints.ru]';
|
||||
$point->description = str_replace('"', 'ʺ', $point->description);
|
||||
$og['description'] = mb_substr($point->description, 0, 97, 'UTF-8').'...';
|
||||
$og['site_name'] = 'WikiPoints: Лучшие выходные - это выходные в путешествии!';
|
||||
$og['type'] = 'website';
|
||||
$og['url'] = 'http://wikipoints.ru/?point=' . $point->id;
|
||||
|
|
|
|||
Loading…
Reference in New Issue