diff options
Diffstat (limited to 'smarty_bit')
| -rw-r--r-- | smarty_bit/block.bitmodule.php | 4 | ||||
| -rw-r--r-- | smarty_bit/function.formhelp.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/smarty_bit/block.bitmodule.php b/smarty_bit/block.bitmodule.php index b4ebc27..321def8 100644 --- a/smarty_bit/block.bitmodule.php +++ b/smarty_bit/block.bitmodule.php @@ -4,7 +4,7 @@ * @package Smarty * @subpackage plugins */ -// $Header: /cvsroot/bitweaver/_bit_kernel/smarty_bit/block.bitmodule.php,v 1.7 2008/05/18 05:48:34 laetzer Exp $ +// $Header: /cvsroot/bitweaver/_bit_kernel/smarty_bit/block.bitmodule.php,v 1.8 2009/10/20 18:01:48 ukgrad89 Exp $ /** * \brief Smarty {bitmodule}{/bitmodule} block handler * @@ -38,7 +38,7 @@ function smarty_block_bitmodule( $pParams, $pContent, &$gBitSmarty) { // } // if( empty( $pParams['name'] )) { -// $pParams['name'] = ereg_replace( "[^-_a-zA-Z0-9]", "", $pParams['title'] ); +// $pParams['name'] = preg_replace( "/[^-_a-zA-Z0-9]/", "", $pParams['title'] ); // } // this is outdated and will not work with our serialised cookies - xing diff --git a/smarty_bit/function.formhelp.php b/smarty_bit/function.formhelp.php index edc913c..f055104 100644 --- a/smarty_bit/function.formhelp.php +++ b/smarty_bit/function.formhelp.php @@ -132,7 +132,7 @@ function smarty_function_formhelp( $pParams, &$gBitSmarty ) { $gBitSmarty->assign( 'content', $content ); $gBitSmarty->assign( 'closebutton', TRUE ); $text = $gBitSmarty->fetch('bitpackage:kernel/popup_box.tpl'); - $text = ereg_replace( '"',"'",$text ); + $text = preg_replace( '/"/',"'",$text ); $popup = array( 'trigger' => 'onclick', |
