Доработка OG
This commit is contained in:
parent
baf1c91ec9
commit
dd2236ed7a
|
|
@ -53,8 +53,10 @@ class IndexController extends Controller
|
||||||
|
|
||||||
$point = new Point();
|
$point = new Point();
|
||||||
$point = $point->getByPK($id);
|
$point = $point->getByPK($id);
|
||||||
$point->descriptionHtml = htmlspecialchars($point->description);
|
|
||||||
$point->name = htmlspecialchars($point->name);
|
$point->name = htmlspecialchars($point->name);
|
||||||
|
$point->descriptionHtml = nl2br(htmlspecialchars($point->description));
|
||||||
|
$point->descriptionHtml .= '<br/><br/>Посмотреть на карте: http://wikipoints.ru/?point='.$id;
|
||||||
|
$point->descriptionHtml .= '<br/><br/>#wikipoints';
|
||||||
|
|
||||||
$og['title'] = $point->name . ' - wikipoints.ru';
|
$og['title'] = $point->name . ' - wikipoints.ru';
|
||||||
$og['description'] = $point->descriptionHtml;
|
$og['description'] = $point->descriptionHtml;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue