BugTrack/2377/template.patch
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
--- html_org.php 2016-01-29 14:13:26.891925900 +0900
+++ html.php 2016-01-29 17:37:32.153289100 +0900
@@ -180,12 +180,15 @@ function edit_form($page, $postdat...
if($load_template_func && $b_template) {
$pages = array();
- foreach(get_existpages() as $_page) {
- if ($_page == $whatsnew || check_non_list($_page))
- continue;
+// foreach(get_existpages() as $_page) {
+ foreach (get_source(':config/Templates') as $_templat...
+ if (! preg_match('#\-\s+?\[\[(.+)\]\].*#', $_templat...
+ $_page = str_replace('./',':config/Templates/',$m[1]);
+// if ($_page == $whatsnew || check_non_list($_page))...
+ if (! is_page($_page)) continue;
$s_page = htmlsc($_page);
$pages[$_page] = ' <option value="' . $s_page . '"...
- $s_page . '</option>';
+ str_replace(':config/Templates/','#',$s_page) . '</...
}
ksort($pages, SORT_STRING);
$s_pages = join("\n", $pages);
-----
lib/html.phpを改造。
[:config/Templates]に
-[[template_page]]
形式でページを追加。&br;
さらに[:config/Templates/]以下のページを追加すると':confi...
- 既知のバグ等&br;
../ (一つ上へ)やエイリアス名 (>)を使うと正しく解釈されな...
終了行:
--- html_org.php 2016-01-29 14:13:26.891925900 +0900
+++ html.php 2016-01-29 17:37:32.153289100 +0900
@@ -180,12 +180,15 @@ function edit_form($page, $postdat...
if($load_template_func && $b_template) {
$pages = array();
- foreach(get_existpages() as $_page) {
- if ($_page == $whatsnew || check_non_list($_page))
- continue;
+// foreach(get_existpages() as $_page) {
+ foreach (get_source(':config/Templates') as $_templat...
+ if (! preg_match('#\-\s+?\[\[(.+)\]\].*#', $_templat...
+ $_page = str_replace('./',':config/Templates/',$m[1]);
+// if ($_page == $whatsnew || check_non_list($_page))...
+ if (! is_page($_page)) continue;
$s_page = htmlsc($_page);
$pages[$_page] = ' <option value="' . $s_page . '"...
- $s_page . '</option>';
+ str_replace(':config/Templates/','#',$s_page) . '</...
}
ksort($pages, SORT_STRING);
$s_pages = join("\n", $pages);
-----
lib/html.phpを改造。
[:config/Templates]に
-[[template_page]]
形式でページを追加。&br;
さらに[:config/Templates/]以下のページを追加すると':confi...
- 既知のバグ等&br;
../ (一つ上へ)やエイリアス名 (>)を使うと正しく解釈されな...
ページ名: