☆スキーウエアNOW ON SALE!!☆★2ピース上下スーツ★ 【エァウォーク】幼児用ウエアAWT‐5524 ピンク(桃色)サイズ:100・110・120
沖縄産スナックパイン1玉(500g〜800g) N−95D23L/C3 technorati RobotReplay 2004/09/30から 今日: 昨日: 最近のツッコミ10発 |
2008-04-01 EC-CUBE更新内容2008-04-01 [長年日記]_ [EC-CUBE] EC-CUBE更新内容1Date: 2008-04-01 14:01:38 +0900 (Tue, 01 Apr 2008) New Revision: 39 Modified: eccube2/trunk/data/class/batch/SC_Batch_Update.php Log: auto commit Modified: eccube2/trunk/data/class/batch/SC_Batch_Update.php =================================================================== --- eccube2/trunk/data/class/batch/SC_Batch_Update.php 2008-03-28 14:01:35 UTC (rev 38) +++ eccube2/trunk/data/class/batch/SC_Batch_Update.php 2008-04-01 05:01:38 UTC (rev 39) @@ -218,10 +218,20 @@ function mkdir_p($path){ $path = dirname($path); $path = str_replace ('\\', '/', $path); + + // HTML_PATH/DATA_PATHの判別 + if (preg_match("@".HTML_PATH."@", $path) > 0) { + $dir = HTML_PATH; + $re_path = preg_replace("@".HTML_PATH."@", "", $path); + } elseif (preg_match("@".DATA_PATH."@", $path) > 0) { + $dir = DATA_PATH; + $re_path = preg_replace("@".DATA_PATH."@", "", $path); + } else { + $dir = ""; + $re_path = $path; + } + $arrDirs = explode("/", $re_path); - $arrDirs = explode("/", $path); - $dir = ''; - foreach($arrDirs as $n){ $dir .= $n . '/'; if(!file_exists($dir)) { _ [EC-CUBE] EC-CUBE更新内容2Date: 2008-04-01 15:01:43 +0900 (Tue, 01 Apr 2008) New Revision: 40 Modified: eccube2/trunk/data/class/batch/SC_Batch_Update.php Log: auto commit Modified: eccube2/trunk/data/class/batch/SC_Batch_Update.php =================================================================== --- eccube2/trunk/data/class/batch/SC_Batch_Update.php 2008-04-01 05:01:38 UTC (rev 39) +++ eccube2/trunk/data/class/batch/SC_Batch_Update.php 2008-04-01 06:01:43 UTC (rev 40) @@ -217,20 +217,18 @@ */ function mkdir_p($path){ $path = dirname($path); - $path = str_replace ('\\', '/', $path); // HTML_PATH/DATA_PATHの判別 - if (preg_match("@".HTML_PATH."@", $path) > 0) { - $dir = HTML_PATH; - $re_path = preg_replace("@".HTML_PATH."@", "", $path); - } elseif (preg_match("@".DATA_PATH."@", $path) > 0) { - $dir = DATA_PATH; - $re_path = preg_replace("@".DATA_PATH."@", "", $path); + if (preg_match("@\Q".HTML_PATH."\E@", $path) > 0) { + $dir = str_replace("\\", "/", HTML_PATH); + $path = preg_replace("@\Q".HTML_PATH."\E@", "", $path); + } elseif (preg_match("@\Q".DATA_PATH."\E@", $path) > 0) { + $dir = str_replace("\\", "/", DATA_PATH); + $path = preg_replace("@\Q".DATA_PATH."\E@", "", $path); } else { $dir = ""; - $re_path = $path; } - $arrDirs = explode("/", $re_path); + $arrDirs = explode("/", str_replace("\\", "/", $path)); foreach($arrDirs as $n){ $dir .= $n . '/'; |