Changeset 19805 for branches/version-2_5-dev/data/class/SC_MobileImage.php
- Timestamp:
- 2010/12/31 23:23:49 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_MobileImage.php
r19802 r19805 24 24 */ 25 25 26 define("MOBILE_IMAGE_INC_ PATH", realpath(dirname( __FILE__)) . "/../include");27 require_once(MOBILE_IMAGE_INC_ PATH . "/image_converter.inc");26 define("MOBILE_IMAGE_INC_REALDIR", realpath(dirname( __FILE__)) . "/../include/"); 27 require_once(MOBILE_IMAGE_INC_REALDIR . "image_converter.inc"); 28 28 29 29 /** … … 52 52 53 53 // 端末の情報を取得する 54 $fp = fopen(MOBILE_IMAGE_INC_ PATH . "/mobile_image_map_$carrier.csv", "r");54 $fp = fopen(MOBILE_IMAGE_INC_REALDIR . "mobile_image_map_$carrier.csv", "r"); 55 55 while (($data = fgetcsv($fp, 1000, ",")) !== FALSE) { 56 56 if ($data[1] == $model || $data[1] == '*') { … … 92 92 foreach ($images[1] as $key => $path) { 93 93 $realpath = html_entity_decode($path, ENT_QUOTES); 94 $realpath = preg_replace('|^' . URL_PATH . '|', HTML_ FILE_PATH, $realpath);94 $realpath = preg_replace('|^' . URL_PATH . '|', HTML_REALDIR, $realpath); 95 95 $converted = $imageConverter->execute($realpath); 96 96 if (isset($converted['outputImageName'])) {
Note: See TracChangeset
for help on using the changeset viewer.
