cvs: smarty /libs/plugins function.mailto.php function.popup.php
| From: | Monte Ohrt | Date: | Fri, 21 Mar 2003 14:36:24 +0000 |
| Subject: | cvs: smarty /libs/plugins function.mailto.php function.popup.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-491@lists.php.net to get a copy of this message | ||
mohrt Fri Mar 21 09:36:24 2003 EDT
Modified files:
/smarty/libs/plugins function.mailto.php function.popup.php
Log:
update functions for XHTML compatability
Index: smarty/libs/plugins/function.mailto.php
diff -u smarty/libs/plugins/function.mailto.php:1.2 smarty/libs/plugins/function.mailto.php:1.3
--- smarty/libs/plugins/function.mailto.php:1.2 Wed Jan 8 12:34:45 2003
+++ smarty/libs/plugins/function.mailto.php Fri Mar 21 09:36:23 2003
@@ -89,7 +89,7 @@
$js_encode .= '%' . bin2hex($string[$x]);
}
- return '<SCRIPT
language="javascript">eval(unescape(\''.$js_encode.'\'))</SCRIPT>';
+ return '<script type="text/javascript"
language="javascript">eval(unescape(\''.$js_encode.'\'))</script>';
} elseif ($encode == 'hex') {
Index: smarty/libs/plugins/function.popup.php
diff -u smarty/libs/plugins/function.popup.php:1.6 smarty/libs/plugins/function.popup.php:1.7
--- smarty/libs/plugins/function.popup.php:1.6 Mon Mar 3 15:43:29 2003
+++ smarty/libs/plugins/function.popup.php Fri Mar 21 09:36:24 2003
@@ -17,7 +17,7 @@
return false;
}
- if (empty($trigger)) { $trigger = "onMouseOver"; }
+ if (empty($trigger)) { $trigger = "onmouseover"; }
$retval = $trigger . '="return
overlib(\''.preg_replace(array("!'!","![\r\n]!"),array("\'",'\r'),$text).'\'';
if ($sticky) { $retval .= ",STICKY"; }