ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 1888


Ignore:
Timestamp:
Feb 20, 2007, 3:37:44 PM (13 years ago)
Author:
takanashi
Message:

#485 HTML挿入のログイン前フッタがお知らせに行くバグの修正

Location:
OpenPNE/trunk/webapp/modules/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/admin/page/insert_html.php

    r1856 r1888  
    1212        $v = array();
    1313
    14         if ($requests['target'] == 'h_home'){
    15             $requests['target'] = 'inc_page_footer_before';
     14        if ($requests['target'] == 'h_home' || $requests['target'] == ''){
     15            $v['title']  = 'inc_page_footer_before';
     16            $v['c_siteadmin'] = db_admin_c_siteadmin('inc_page_footer_before');
     17        } else {
     18            $v['title'] = $requests['target'];
     19            $v['c_siteadmin'] = db_admin_c_siteadmin($requests['target']);
    1620        }
    17         $v['c_siteadmin'] = db_admin_c_siteadmin($requests['target']);
    18         $v['title'] = $requests['target'];
    19 
    2021        $this->set($v);
    2122        return 'success';
  • OpenPNE/trunk/webapp/modules/admin/templates/insert_html.tpl

    r1818 r1888  
    7979<input type="hidden" name="a" value="do_({$hash_tbl->hash('insert_html','do')})" />
    8080<input type="hidden" name="sessid" value="({$PHPSESSID})" />
    81 <input type="hidden" name="target" value="({$requests.target})" />
     81<input type="hidden" name="target" value="({$title})" />
    8282<textarea name="body" cols="({$cols|default:60})" rows="({$rows|default:10})">({$c_siteadmin.body})</textarea>
    8383<p class="textBtn"><input type="submit" value=" 変更する " /></p>
Note: See TracChangeset for help on using the changeset viewer.