[xoops-cvslog 1926] CVS update: xoops2jp/html/class/database

Back to archive index

Minahito minah****@users*****
2006年 1月 25日 (水) 19:55:38 JST


Index: xoops2jp/html/class/database/sqlutility.php
diff -u xoops2jp/html/class/database/sqlutility.php:1.2.8.2 xoops2jp/html/class/database/sqlutility.php:1.2.8.3
--- xoops2jp/html/class/database/sqlutility.php:1.2.8.2	Tue Dec 27 14:28:38 2005
+++ xoops2jp/html/class/database/sqlutility.php	Wed Jan 25 19:55:38 2006
@@ -28,6 +28,12 @@
   {
     $this->dirname = $dirname;
     $i = 0;
+
+	//
+	// If sql file is created in Mac OS, file() can not detect the line end.
+	//    
+    ini_set("auto_detect_line_endings" ,true);
+    
     $sql_query = file(XOOPS_MODULE_PATH.'/'.$dirname.'/'.$file);
     $pattern = "/^(INSERT INTO|CREATE TABLE|UPDATE)/siU";
     foreach ( $sql_query as $fline ) {


xoops-cvslog メーリングリストの案内
Back to archive index