1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Fixes #751 - Meta-tag issues.

This commit is contained in:
Cameron
2015-04-08 22:05:32 -07:00
parent d543ab71ff
commit 4c7c3dfd47
3 changed files with 23 additions and 16 deletions

View File

@@ -3967,9 +3967,14 @@ class eResponse
if(null !== $name)
{
$key = (substr($name,0,3) == 'og:') ? 'property' : 'name';
$attr[$key] = $name;
// $key = (substr($name,0,3) == 'og:') ? 'property' : 'name';
// $attr[$key] = $name;
$attr['property'] = $name; // giving both should be valid and avoid issues with FB and others.
$attr['name'] = $name;
}
if(null !== $content) $attr['content'] = $content;
if(!empty($extended))
{