Changeset 21776


Ignore:
Timestamp:
2012/04/24 20:44:23 (9 years ago)
Author:
shutta
Message:

#1771 resize_image.phpのモバイル対応
resize_image.phpがモバイルでも利用できるように修正。

Location:
branches/version-2_12-dev
Files:
3 edited

Legend:

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

    r21658 r21776  
    9595            // HTML中のIMGタグを変換後のファイルパスに置換する 
    9696            foreach ($images[1] as $key => $path) { 
     97                // resize_image.phpは除外 
     98                if (stripos($path, ROOT_URLPATH . 'resize_image.php') !== FALSE) { 
     99                    break; 
     100                } 
     101 
    97102                $realpath = html_entity_decode($path, ENT_QUOTES); 
    98103                $realpath = preg_replace('|^' . ROOT_URLPATH . '|', HTML_REALDIR, $realpath); 
  • branches/version-2_12-dev/data/class/pages/LC_Page_ResizeImage.php

    r21764 r21776  
    5454        parent::process(); 
    5555        $this->action(); 
    56         $this->sendResponse(); 
    5756    } 
    5857 
  • branches/version-2_12-dev/html/require.php

    r21474 r21776  
    3939 
    4040if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 
    41     $objMobile = new SC_Helper_Mobile_Ex(); 
    42     $objMobile->sfMobileInit(); 
     41    // resize_image.phpは除外 
     42    if (stripos($_SERVER['REQUEST_URI'], ROOT_URLPATH . 'resize_image.php') === FALSE) { 
     43        $objMobile = new SC_Helper_Mobile_Ex(); 
     44        $objMobile->sfMobileInit(); 
     45    } 
    4346} 
Note: See TracChangeset for help on using the changeset viewer.