Changeset 22796 for branches/version-2_12-dev/data/class/SC_MobileImage.php
- Timestamp:
- 2013/05/02 18:11:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_MobileImage.php
r22791 r22796 30 30 * 画像変換クラス 31 31 */ 32 class SC_MobileImage 33 { 32 class SC_MobileImage { 34 33 /** 35 34 * 画像を端末の解像度に合わせて変換する … … 39 38 * @return string 出力 40 39 */ 41 static function handler($buffer) 42 { 40 static function handler($buffer) { 43 41 44 42 // 端末情報を取得する … … 100 98 // resize_image.phpは除外 101 99 if (stripos($path, ROOT_URLPATH . 'resize_image.php') !== FALSE) { 102 continue;100 break; 103 101 } 104 102 105 103 $realpath = html_entity_decode($path, ENT_QUOTES); 106 $realpath = substr_replace($realpath, HTML_REALDIR, 0, strlen(ROOT_URLPATH));104 $realpath = preg_replace('|^' . ROOT_URLPATH . '|', HTML_REALDIR, $realpath); 107 105 $converted = $imageConverter->execute($realpath); 108 106 if (isset($converted['outputImageName'])) {
Note: See TracChangeset
for help on using the changeset viewer.
