[imc-sf-coders] CVS update of sf-active/sf-active/shared/classes (producer_class.inc)

Bart M pseudopunk at codecoop.org
Tue Dec 27 14:22:58 PST 2005


    Date: Tuesday, December 27, 2005 @ 23:22:58
  Author: pseudopunk
    Path: /cvsroot/sf-active/sf-active/sf-active/shared/classes

Modified: producer_class.inc

surpressing warnings when searching for empty strings -- anyone better idea ?


Index: sf-active/sf-active/shared/classes/producer_class.inc
diff -u sf-active/sf-active/shared/classes/producer_class.inc:1.20 sf-active/sf-active/shared/classes/producer_class.inc:1.21
--- sf-active/sf-active/shared/classes/producer_class.inc:1.20	Sun Jun 19 17:14:36 2005
+++ sf-active/sf-active/shared/classes/producer_class.inc	Tue Dec 27 23:22:58 2005
@@ -297,7 +297,7 @@
      *	@param	array	$p_rule
      */
     function assign_input(&$tpl, &$p_rule){
-	if(ereg($this->get_mixed_ext(), $p_rule['langpath'])){
+	if(@ereg($this->get_mixed_ext(), $p_rule['langpath'])){
 	     $i18n = 'mix' ;
 	}else{ 
 	    $i18n = str_replace($this->get_pure_ext(), '', $p_rule['langpath']);
@@ -694,7 +694,7 @@
      *	@param	string	$style
      */
     function set_lang_style($style=''){
-	if(ereg($this->get_mixed_ext(), $style)){
+	if(@ereg($this->get_mixed_ext(), $style)){
 	    $lang_style = 'mix';
 	}else{
 	    $lang_style = '';


More information about the imc-sf-coders mailing list