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

Fixes #1546

Widgets are now working again with token_auth

git-svn-id: http://dev.piwik.org/svn/trunk@2874 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent eb0f07fa
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -44,6 +44,11 @@ abstract class Piwik_Controller
* Builds the controller object, reads the date from the request, extracts plugin name from
*/
function __construct()
{
$this->init();
}
protected function init()
{
$aPluginName = explode('_', get_class($this));
$this->pluginName = $aPluginName[1];
......@@ -58,7 +63,6 @@ abstract class Piwik_Controller
$this->date = null;
}
}
/**
* Helper method to convert "today" or "yesterday" to the default timezone specified.
* If the date is absolute, ie. YYYY-MM-DD, it will not be converted to the timezone
......
......@@ -58,6 +58,7 @@ class Piwik_Widgetize_Controller extends Piwik_Controller
function iframe()
{
Piwik_API_Request::reloadAuthUsingTokenAuth();
$this->init();
$controllerName = Piwik_Common::getRequestVar('moduleToWidgetize');
$actionName = Piwik_Common::getRequestVar('actionToWidgetize');
$parameters = array ( $fetch = true );
......
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