From: <var...@us...> - 2014-11-26 13:39:42
|
Revision: 9383 http://sourceforge.net/p/phpwiki/code/9383 Author: vargenau Date: 2014-11-26 13:39:34 +0000 (Wed, 26 Nov 2014) Log Message: ----------- Remove unused function _showvalue Modified Paths: -------------- trunk/lib/plugin/EditMetaData.php Modified: trunk/lib/plugin/EditMetaData.php =================================================================== --- trunk/lib/plugin/EditMetaData.php 2014-11-26 13:20:23 UTC (rev 9382) +++ trunk/lib/plugin/EditMetaData.php 2014-11-26 13:39:34 UTC (rev 9383) @@ -125,10 +125,6 @@ // Now we show the meta data and provide entry box for new data. $html = HTML(); - //$html->pushContent(HTML::h3(fmt("Existing page-level metadata for %s:", - // $page))); - //$dl = $this->_display_values('', $pagemeta); - //$html->pushContent($dl); if (!$pagemeta) { // FIXME: invalid HTML $html->pushContent(HTML::p(fmt("No metadata for %s", $page))); @@ -164,35 +160,6 @@ } return $html; } - - protected function _showvalue($key, $val, $prefix = '') - { - if (is_array($val) or is_object($val)) return $val; - if (in_array($key, $this->hidden_pagemeta)) return ''; - if ($prefix) { - $fullkey = $prefix . '[' . $key . ']'; - if (substr($fullkey, 0, 1) == '[') { - $meta = "meta" . $fullkey; - $fullkey = preg_replace("/\]\[/", "[", substr($fullkey, 1), 1); - } else { - $meta = preg_replace("/^([^\[]+)\[/", "meta[$1][", $fullkey, 1); - } - } else { - $fullkey = $key; - $meta = "meta[" . $key . "]"; - } - //$meta = "meta[".$fullkey."]"; - $arr = array('name' => $meta, 'value' => $val); - if (strlen($val) > 20) - $arr['size'] = strlen($val); - if (in_array($key, $this->readonly_pagemeta)) { - $arr['readonly'] = 'readonly'; - return HTML::input($arr); - } else { - return HTML(HTML::em($fullkey), HTML::br(), - HTML::input($arr)); - } - } } // Local Variables: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |