カテゴリ | |
---|---|
サマリ | テンプレート保存時に、&page;等の置換えをしたくない Part2 |
バージョン | 1.4.7 |
投稿者 | Elm |
状態 | 質問 |
投稿日 | 2009-07-14 (火) 22:31:42 |
質問箱/4431の改良案です。
rules.ini.phpの$rules_strを修正します。 訂正版
$page_array = explode('/', $vars['page']); // with array_pop() $short_page = array_pop($page_array); $str_rules = array() if( $short_page <> 'template' ){ $str_rules = array( 'now\?' => format_date(UTIME), 'date\?' => get_date($date_format), 'time\?' => get_date($time_format), '&now;' => format_date(UTIME), '&date;' => get_date($date_format), '&time;' => get_date($time_format), '&page;' => $short_page, '&fpage;' => $vars['page'], '&t;' => "\t", ); }
うちの環境ではいけてるようですが、テスト環境を一からつくって試せていないです。
2009/07/17 テスト環境 1.4.7で再テストしました