From: <on...@us...> - 2002-09-27 12:58:01
|
Update of /cvsroot/xoops/xoops-current/html/class In directory usw-pr-cvs1:/tmp/cvs-serv22662 Modified Files: module.textsanitizer.php Log Message: no message Index: module.textsanitizer.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/class/module.textsanitizer.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** module.textsanitizer.php 25 Sep 2002 18:50:06 -0000 1.9 --- module.textsanitizer.php 27 Sep 2002 12:57:58 -0000 1.10 *************** *** 39,46 **** function &getInstance(){ ! if ( isset($GLOBALS['xoopsMyts']) && get_class($GLOBALS['xoopsMyts']) == "mytextsanitizer" ) { ! return $GLOBALS['xoopsMyts']; } ! return new MyTextSanitizer(); } --- 39,47 ---- function &getInstance(){ ! static $instance; ! if (!isset($instance)) { ! $instance = new MyTextSanitizer(); } ! return $instance; } |