OSDN Git Service
(root)
/
pukiwiki
/
pukiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c169a5a
)
BugTrack/2385 Remote author info from editing text on unfreezing
author
umorigu
<umorigu@gmail.com>
Sat, 9 Sep 2017 12:34:47 +0000
(21:34 +0900)
committer
umorigu
<umorigu@gmail.com>
Sat, 9 Sep 2017 12:34:47 +0000
(21:34 +0900)
plugin/unfreeze.inc.php
patch
|
blob
|
history
diff --git
a/plugin/unfreeze.inc.php
b/plugin/unfreeze.inc.php
index
52ca90b
..
e3154ee
100644
(file)
--- a/
plugin/unfreeze.inc.php
+++ b/
plugin/unfreeze.inc.php
@@
-24,7
+24,7
@@
function plugin_unfreeze_action()
$msg = $body = '';
if (! is_freeze($page)) {
// Unfreezed already
$msg = $body = '';
if (! is_freeze($page)) {
// Unfreezed already
- $msg =
&
$_title_isunfreezed;
+ $msg = $_title_isunfreezed;
$body = str_replace('$1', htmlsc(strip_bracket($page)),
$_title_isunfreezed);
$body = str_replace('$1', htmlsc(strip_bracket($page)),
$_title_isunfreezed);
@@
-43,17
+43,17
@@
function plugin_unfreeze_action()
is_freeze($page, TRUE);
if (PLUGIN_UNFREEZE_EDIT) {
$vars['cmd'] = 'read'; // To show 'Freeze' link
is_freeze($page, TRUE);
if (PLUGIN_UNFREEZE_EDIT) {
$vars['cmd'] = 'read'; // To show 'Freeze' link
- $msg = & $_title_unfreezed;
+ $msg = $_title_unfreezed;
+ $postdata = remove_author_info($postdata);
$body = edit_form($page, $postdata);
} else {
$vars['cmd'] = 'read';
$body = edit_form($page, $postdata);
} else {
$vars['cmd'] = 'read';
- $msg =
&
$_title_unfreezed;
+ $msg = $_title_unfreezed;
$body = '';
}
$body = '';
}
-
} else {
// Show unfreeze form
} else {
// Show unfreeze form
- $msg =
&
$_title_unfreeze;
+ $msg = $_title_unfreeze;
$s_page = htmlsc($page);
$body = ($pass === NULL) ? '' : "<p><strong>$_msg_invalidpass</strong></p>\n";
$body .= <<<EOD
$s_page = htmlsc($page);
$body = ($pass === NULL) ? '' : "<p><strong>$_msg_invalidpass</strong></p>\n";
$body .= <<<EOD
@@
-68,6
+68,5
@@
function plugin_unfreeze_action()
</form>
EOD;
}
</form>
EOD;
}
-
return array('msg'=>$msg, 'body'=>$body);
}
return array('msg'=>$msg, 'body'=>$body);
}