Changeset 669 for trunk/phpbms/include
- Timestamp:
- 10/23/09 13:43:01 (3 years ago)
- Location:
- trunk/phpbms/include
- Files:
-
- 2 modified
-
common_functions.php (modified) (3 diffs)
-
db.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/include/common_functions.php
r667 r669 756 756 757 757 case "English, US": 758 $datestring="/".preg_replace(" ,.","/",$datestring);758 $datestring="/".preg_replace("/,./","/",$datestring); 759 759 $temparray=explode("/",$datestring); 760 760 if(count($temparray)==4) … … 765 765 766 766 case "English, UK": 767 $datestring="/".preg_replace(" ,.","/",$datestring);767 $datestring="/".preg_replace("/,./","/",$datestring); 768 768 $temparray=explode("/",$datestring); 769 769 if(count($temparray)==4) … … 774 774 775 775 case "Dutch, NL": 776 $datestring="-".preg_replace(" ,.","-",$datestring);776 $datestring="-".preg_replace("/,./","-",$datestring); 777 777 $temparray=explode("-",$datestring); 778 778 if(count($temparray)==4) -
trunk/phpbms/include/db.php
r667 r669 556 556 557 557 // need to convert DOS or Mac line breaks 558 $line = preg_replace(" \r\n$", "\n", $line);559 $line = preg_replace(" \r$", "\n", $line);558 $line = preg_replace("/\r\n$/", "\n", $line); 559 $line = preg_replace("/\r$/", "\n", $line); 560 560 561 561 // ignore comment lines, but only if they are not in quotes