Changeset 21887


Ignore:
Timestamp:
2012/06/04 14:31:08 (12 years ago)
Author:
Seasoft
Message:

#1848 (SC_Helper_Transform#construct エラー文言が不親切かも)

File:
1 edited

Legend:

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

    r21886 r21887  
    6464        $encoding = mb_detect_encoding($source); 
    6565        if (!in_array($encoding, array('ASCII', 'UTF-8'))) { 
    66             $msg = 'テンプレートの文字コードが「' . $encoding . '」です。UTF-8 のみ利用できます。'; 
     66            if ($encoding === false) { 
     67                $encoding = '検出不能'; 
     68            } 
     69            $msg = 'テンプレートの文字コードが「' . $encoding . '」です。「UTF-8」のみ利用できます。'; 
    6770            SC_Utils_Ex::sfDispSiteError(FREE_ERROR_MSG, '', true, $msg); 
    6871        } 
Note: See TracChangeset for help on using the changeset viewer.