Commit MetaInfo

修订版63eb46091b3f3fdc19cff0e4cb7dad70ae4fcb0e (tree)
时间2018-06-05 01:07:30
作者umorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/2475 Load template page regardless of $load_template_func

更改概述

差异

--- a/plugin/edit.inc.php
+++ b/plugin/edit.inc.php
@@ -1,7 +1,7 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone.
33 // edit.inc.php
4-// Copyright 2001-2017 PukiWiki Development Team
4+// Copyright 2001-2018 PukiWiki Development Team
55 // License: GPL v2 or (at your option) any later version
66 //
77 // Edit plugin (cmd=edit)
@@ -11,7 +11,7 @@ define('PLUGIN_EDIT_FREEZE_REGEX', '/^(?:#freeze(?!\w)\s*)+/im');
1111
1212 function plugin_edit_action()
1313 {
14- global $vars, $_title_edit, $load_template_func;
14+ global $vars, $_title_edit;
1515
1616 if (PKWK_READONLY) die_message('PKWK_READONLY prohibits editing');
1717
@@ -22,7 +22,7 @@ function plugin_edit_action()
2222
2323 if (isset($vars['preview'])) {
2424 return plugin_edit_preview($vars['msg']);
25- } else if ($load_template_func && isset($vars['template'])) {
25+ } else if (isset($vars['template'])) {
2626 return plugin_edit_preview_with_template();
2727 } else if (isset($vars['write'])) {
2828 return plugin_edit_write();
Show on old repository browser