Changeset 20259


Ignore:
Timestamp:
2011/02/20 18:23:10 (13 years ago)
Author:
shutta
Message:

refs #985
エラー画面表示の不具合を修正。

Location:
branches/version-2_5-dev/data/class/pages/error
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/error/LC_Page_Error_DispError.php

    r20136 r20259  
    2424 
    2525// {{{ requires 
    26 require_once(CLASS_REALDIR . "pages/error/LC_Page_Error.php"); 
     26require_once(CLASS_REALDIR . "pages/admin/LC_Page_Admin.php"); 
    2727 
    2828/** 
     
    3333 * @version $Id$ 
    3434 */ 
    35 class LC_Page_Error_DispError extends LC_Page_Error { 
     35class LC_Page_Error_DispError extends LC_Page_Admin { 
    3636 
    3737    // }}} 
     
    4545    function init() { 
    4646        parent::init(); 
     47        $this->template = LOGIN_FRAME; 
    4748        $this->tpl_mainpage = 'login_error.tpl'; 
    4849        $this->tpl_title = 'ログインエラー'; 
  • branches/version-2_5-dev/data/class/pages/error/LC_Page_Error_SystemError.php

    r20136 r20259  
    7373     */ 
    7474    function action(){ 
    75         $this->adminPage = SC_Utils_Ex::sfIsAdminFunction(); 
    76  
    77         if ($this->adminPage) { 
    78             $this->tpl_mainpage = 'login_error.tpl'; 
    79             $this->frame = LOGIN_FRAME; 
    80         } else { 
    81             $this->frame = SITE_FRAME; 
    82         } 
    83          
    84         $objView = null; 
    85         if (SC_Display::detectDevice() == DEVICE_TYPE_MOBILE && $this->adminPage == false) { 
    86             $objView = new SC_InstallView(MOBILE_TEMPLATE_REALDIR, MOBILE_COMPILE_REALDIR); 
    87         } elseif($this->adminPage) { 
    88             $objView = new SC_AdminView(); 
    89         } else { 
    90             $objView = new SC_InstallView(TEMPLATE_REALDIR, COMPILE_REALDIR); 
    91         } 
    92  
    9375        $this->tpl_error = "システムエラーが発生しました。<br />大変お手数ですが、サイト管理者までご連絡ください。"; 
    94  
    95         $objView->assignobj($this); 
    96         $objView->display($this->frame); 
    9776 
    9877        if (DEBUG_MODE) { 
     
    10685        } 
    10786    } 
     87 
     88    /** 
     89     * Page のレスポンス送信. 
     90     * 
     91     * @return void 
     92     */ 
     93    function sendResponse() { 
     94        $this->adminPage = SC_Utils_Ex::sfIsAdminFunction(); 
     95 
     96        if ($this->adminPage) { 
     97            $this->tpl_mainpage = 'login_error.tpl'; 
     98            $this->template = LOGIN_FRAME; 
     99            $this->objDisplay->prepare($this, true); 
     100        } else { 
     101            $this->objDisplay->prepare($this); 
     102        } 
     103 
     104        $this->objDisplay->response->write(); 
     105    } 
     106 
    108107 
    109108    /** 
Note: See TracChangeset for help on using the changeset viewer.