From 3cfd29054b77951000cce58c236811a2b6391422 Mon Sep 17 00:00:00 2001 From: vargenau Date: Thu, 18 Apr 2013 09:36:18 +0000 Subject: [PATCH] tablePush is protected git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8769 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/WikiAdminRename.php | 12 ++++++------ lib/plugin/WikiAdminSearchReplace.php | 8 ++++---- lib/plugin/WikiAdminSelect.php | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/plugin/WikiAdminRename.php b/lib/plugin/WikiAdminRename.php index 001b68244..9bf712615 100644 --- a/lib/plugin/WikiAdminRename.php +++ b/lib/plugin/WikiAdminRename.php @@ -274,28 +274,28 @@ class WikiPlugin_WikiAdminRename function renameForm(&$header, $post_args, $singlepage) { $table = HTML::table(); - $this->_tablePush($table, _("Rename") . " " . _("from") . _(": "), + $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']))); - $this->_tablePush($table, _("to") . _(": "), + $this->tablePush($table, _("to") . _(": "), HTML::input(array('name' => 'admin_rename[to]', 'size' => MAX_PAGENAME_LENGTH, 'maxlength' => MAX_PAGENAME_LENGTH, 'value' => $post_args['to']))); if ($singlepage === false) { - $this->_tablePush($table, '', + $this->tablePush($table, '', $this->checkBox($post_args, 'regex', _("Regex?"))); - $this->_tablePush($table, '', + $this->tablePush($table, '', $this->checkBox($post_args, 'icase', _("Case insensitive?"))); } if (defined('EXPERIMENTAL') and EXPERIMENTAL) // not yet stable - $this->_tablePush($table, '', + $this->tablePush($table, '', $this->checkBox($post_args, 'updatelinks', _("Change pagename in all linked pages also?"))); - $this->_tablePush($table, '', + $this->tablePush($table, '', $this->checkBox($post_args, 'createredirect', _("Create redirect from old to new name?"))); $header->pushContent($table); diff --git a/lib/plugin/WikiAdminSearchReplace.php b/lib/plugin/WikiAdminSearchReplace.php index de55a8615..ff64aa5ce 100644 --- a/lib/plugin/WikiAdminSearchReplace.php +++ b/lib/plugin/WikiAdminSearchReplace.php @@ -239,16 +239,16 @@ class WikiPlugin_WikiAdminSearchReplace _("Replace all occurences of the given string in the content of all pages.")), HTML::br()); $table = HTML::table(); - $this->_tablePush($table, _("Replace") . _(": "), + $this->tablePush($table, _("Replace") . _(": "), HTML::input(array('name' => 'admin_replace[from]', 'size' => 90, 'value' => $post_args['from']))); - $this->_tablePush($table, _("by") . _(": "), + $this->tablePush($table, _("by") . _(": "), HTML::input(array('name' => 'admin_replace[to]', 'size' => 90, 'value' => $post_args['to']))); - $this->_tablePush($table, '', $this->checkBox($post_args, 'case_exact', _("Case exact?"))); - $this->_tablePush($table, '', $this->checkBox($post_args, 'regex', _("Regex?"))); + $this->tablePush($table, '', $this->checkBox($post_args, 'case_exact', _("Case exact?"))); + $this->tablePush($table, '', $this->checkBox($post_args, 'regex', _("Regex?"))); $header->pushContent($table); return $header; } diff --git a/lib/plugin/WikiAdminSelect.php b/lib/plugin/WikiAdminSelect.php index dcef7b8db..d1f582fce 100644 --- a/lib/plugin/WikiAdminSelect.php +++ b/lib/plugin/WikiAdminSelect.php @@ -234,7 +234,7 @@ class WikiPlugin_WikiAdminSelect } } - private function _tablePush(&$table, $first, $second) + protected function tablePush(&$table, $first, $second) { $table->pushContent( HTML::tr( -- 2.42.0