Skip to content
Extraits de code Groupes Projets
Valider 5579c47d rédigé par JulienMoumne's avatar JulienMoumne
Parcourir les fichiers

refs #3013

 * forgot to update Piwik_ImageGraph_StaticGraph_Exception

git-svn-id: http://dev.piwik.org/svn/trunk@6970 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 5671ab75
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,23 +36,23 @@ class Piwik_ImageGraph_StaticGraph_Exception extends Piwik_ImageGraph_StaticGrap ...@@ -36,23 +36,23 @@ class Piwik_ImageGraph_StaticGraph_Exception extends Piwik_ImageGraph_StaticGrap
$this->pData = new pData(); $this->pData = new pData();
$message = $this->exception->getMessage(); $message = $this->exception->getMessage();
$messageHeight = $this->getMaximumTextHeight(); list($textWidth, $textHeight) = $this->getTextWidthHeight($message);
if($this->width == null) if($this->width == null)
{ {
$this->width = $this->getMaximumTextWidth($message) + self::MESSAGE_RIGHT_MARGIN; $this->width = $textWidth + self::MESSAGE_RIGHT_MARGIN;
} }
if($this->height == null) if($this->height == null)
{ {
$this->height = $messageHeight; $this->height = $textHeight;
} }
$this->initpImage(); $this->initpImage();
$this->pImage->drawText( $this->pImage->drawText(
0, 0,
$messageHeight, $textHeight,
$message $message
); );
} }
......
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