SVN Alba r6219 - prosistem/alba/trunk/alba/plugins/albaToolsPlugin/modules/albaTools/actions
Author: ftoledo Date: 2009-06-01 19:24:51 -0300 (Mon, 01 Jun 2009) New Revision: 6219 Modified: prosistem/alba/trunk/alba/plugins/albaToolsPlugin/modules/albaTools/actions/actions.class.php Log: enviado el header correctamente Modified: prosistem/alba/trunk/alba/plugins/albaToolsPlugin/modules/albaTools/actions/actions.class.php =================================================================== --- prosistem/alba/trunk/alba/plugins/albaToolsPlugin/modules/albaTools/actions/actions.class.php 2009-06-01 22:08:02 UTC (rev 6218) +++ prosistem/alba/trunk/alba/plugins/albaToolsPlugin/modules/albaTools/actions/actions.class.php 2009-06-01 22:24:51 UTC (rev 6219) @@ -11,11 +11,9 @@ //fuente por defecto $this->font = 2; //obtengo el texto - $texto = $request->getParameter('texto'); + $texto = $request->getParameter('texto', 'null'); //seteo el header - $this->setLayout(false); - $this->getResponse()->clearHttpHeaders(); - $this->getResponse()->setContentType("Content-type: image/png"); + header("Content-type: image/png"); // calculo el alto $alto = strlen($texto) * imagefontwidth($this->font) + imagefontwidth($this->font);
participants (1)
-
commits@pressenter.com.ar