This commit is contained in:
Krivchikov Dmitry 2014-11-26 21:54:43 +03:00
parent a730842c1a
commit 8dd3d4d3b8
1 changed files with 3 additions and 2 deletions

View File

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