Skip to content
Extraits de code Groupes Projets
Valider 00029a88 rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Fix regression: widgets should always load in the iframe

git-svn-id: http://dev.piwik.org/svn/trunk@5917 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 9f7ecdc8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -160,6 +160,10 @@ class Piwik_View implements Piwik_View_Interface ...@@ -160,6 +160,10 @@ class Piwik_View implements Piwik_View_Interface
{ {
$this->xFrameOptions = $option; $this->xFrameOptions = $option;
} }
if($option == 'allow')
{
$this->xFrameOptions = null;
}
} }
/** /**
......
...@@ -67,6 +67,7 @@ class Piwik_Widgetize_Controller extends Piwik_Controller ...@@ -67,6 +67,7 @@ class Piwik_Widgetize_Controller extends Piwik_Controller
$outputDataTable = Piwik_FrontController::getInstance()->fetchDispatch( $controllerName, $actionName, $parameters); $outputDataTable = Piwik_FrontController::getInstance()->fetchDispatch( $controllerName, $actionName, $parameters);
$view = Piwik_View::factory('iframe'); $view = Piwik_View::factory('iframe');
$this->setGeneralVariablesView($view); $this->setGeneralVariablesView($view);
$view->setXFrameOptions('allow');
$view->content = $outputDataTable; $view->content = $outputDataTable;
echo $view->render(); echo $view->render();
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter