|
From: <var...@us...> - 2021-07-27 14:34:46
|
Revision: 10370
http://sourceforge.net/p/phpwiki/code/10370
Author: vargenau
Date: 2021-07-27 14:34:44 +0000 (Tue, 27 Jul 2021)
Log Message:
-----------
lib/plugin/WikiAdminRename.php: old name is readonly only when it is a single page
Modified Paths:
--------------
trunk/lib/plugin/WikiAdminRename.php
Modified: trunk/lib/plugin/WikiAdminRename.php
===================================================================
--- trunk/lib/plugin/WikiAdminRename.php 2021-07-27 13:32:39 UTC (rev 10369)
+++ trunk/lib/plugin/WikiAdminRename.php 2021-07-27 14:34:44 UTC (rev 10370)
@@ -296,12 +296,20 @@
private function renameForm(&$header, $post_args, $singlepage)
{
$table = HTML::table();
- $this->tablePush($table, _("Rename") . " " . _("from") . _(": "),
- HTML::input(array('name' => 'admin_rename[from]',
- 'size' => MAX_PAGENAME_LENGTH,
- 'maxlength' => MAX_PAGENAME_LENGTH,
- 'readonly' => 'readonly',
- 'value' => $post_args['from'])));
+ if ($singlepage) {
+ $this->tablePush($table, _("Rename") . " " . _("from") . _(": "),
+ HTML::input(array('name' => 'admin_rename[from]',
+ 'size' => MAX_PAGENAME_LENGTH,
+ 'maxlength' => MAX_PAGENAME_LENGTH,
+ 'readonly' => 'readonly',
+ 'value' => $post_args['from'])));
+ } else {
+ $this->tablePush($table, _("Rename") . " " . _("from") . _(": "),
+ HTML::input(array('name' => 'admin_rename[from]',
+ 'size' => MAX_PAGENAME_LENGTH,
+ 'maxlength' => MAX_PAGENAME_LENGTH,
+ 'value' => $post_args['from'])));
+ }
$this->tablePush($table, _("to") . _(": "),
HTML::input(array('name' => 'admin_rename[to]',
'size' => MAX_PAGENAME_LENGTH,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|