Ignore:
Timestamp:
2010/12/31 23:23:49 (13 years ago)
Author:
Seasoft
Message:

#834(パラメータの定数名に「URL」を含むにもかかわらず、パスのみのものがある) 一部実装

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_MobileImage.php

    r19802 r19805  
    2424 */ 
    2525 
    26 define("MOBILE_IMAGE_INC_PATH", realpath(dirname( __FILE__)) . "/../include"); 
    27 require_once(MOBILE_IMAGE_INC_PATH . "/image_converter.inc"); 
     26define("MOBILE_IMAGE_INC_REALDIR", realpath(dirname( __FILE__)) . "/../include/"); 
     27require_once(MOBILE_IMAGE_INC_REALDIR . "image_converter.inc"); 
    2828 
    2929/** 
     
    5252 
    5353            // 端末の情報を取得する 
    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"); 
    5555            while (($data = fgetcsv($fp, 1000, ",")) !== FALSE) { 
    5656                if ($data[1] == $model || $data[1] == '*') { 
     
    9292            foreach ($images[1] as $key => $path) { 
    9393                $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); 
    9595                $converted = $imageConverter->execute($realpath); 
    9696                if (isset($converted['outputImageName'])) { 
Note: See TracChangeset for help on using the changeset viewer.