mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 12:51:52 +02:00
Fixed Meta-Tag overwrite issue. Changed eResponse to singleton. May correct problems with Facebook app-id and custom og:image. Pages possibly affected: front-page (index.php) and news, custom-page and user pages.
This commit is contained in:
@@ -389,7 +389,8 @@ class eFront
|
||||
$router = new eRouter();
|
||||
$this->setRouter($router);
|
||||
|
||||
$response = new eResponse();
|
||||
// $response = new eResponse();
|
||||
$response = e107::getSingleton('eResponse');
|
||||
$this->setResponse($response);
|
||||
|
||||
return $this;
|
||||
@@ -4273,8 +4274,8 @@ class eResponse
|
||||
$attrData = '';
|
||||
|
||||
e107::getEvent()->trigger('system_meta_pre');
|
||||
|
||||
foreach ($this->_meta as $attr)
|
||||
|
||||
foreach ($this->_meta as $attr)
|
||||
{
|
||||
$attrData .= '<meta';
|
||||
foreach ($attr as $p => $v)
|
||||
|
Reference in New Issue
Block a user