Changeset 18550


Ignore:
Timestamp:
2010/02/04 19:31:35 (11 years ago)
Author:
shutta
Message:

#598(SITE_URLの設定と異なるURLでのアクセス時にuser_data/以下のページが表示されない)の対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4-dev/data/class/helper/SC_Helper_PageLayout.php

    r18493 r18550  
    5151        if ($preview === false) { 
    5252            if ($url == "") { 
    53                 $url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; 
     53                $url = SITE_URL . preg_replace('|^' . preg_quote(URL_DIR) . '|', '' , $_SERVER['PHP_SELF']); 
    5454            } 
    5555            // URLを元にページデザインを取得 
Note: See TracChangeset for help on using the changeset viewer.