mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fixed PHP notice
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
||||
- fixed notice in popup function (Nagger, Monte)
|
||||
- fix "once" var compiling for include_php (Monte)
|
||||
- added nl2br modifier to distribution (Monte)
|
||||
- added html_image to distribution (Monte)
|
||||
|
@@ -19,7 +19,7 @@ function smarty_function_popup($params, &$smarty)
|
||||
|
||||
if (empty($trigger)) { $trigger = "onMouseOver"; }
|
||||
|
||||
$retval .= $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
|
||||
$retval = $trigger . '="return overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
|
||||
if ($sticky) { $retval .= ",STICKY"; }
|
||||
if (!empty($caption)) { $retval .= ",CAPTION,'".str_replace("'","\'",$caption)."'"; }
|
||||
if (!empty($fgcolor)) { $retval .= ",FGCOLOR,'$fgcolor'"; }
|
||||
|
Reference in New Issue
Block a user