From: <var...@us...> - 2012-11-18 17:59:02
|
Revision: 8488 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8488&view=rev Author: vargenau Date: 2012-11-18 17:58:55 +0000 (Sun, 18 Nov 2012) Log Message: ----------- Whitespace only Modified Paths: -------------- trunk/lib/plugin/EditMetaData.php Modified: trunk/lib/plugin/EditMetaData.php =================================================================== --- trunk/lib/plugin/EditMetaData.php 2012-11-17 20:25:57 UTC (rev 8487) +++ trunk/lib/plugin/EditMetaData.php 2012-11-18 17:58:55 UTC (rev 8488) @@ -33,10 +33,10 @@ * * Access by restricted to ADMIN_USER * - * Written by MichaelVanDam, to test out some ideas about + * Written by Michael Van Dam, to test out some ideas about * PagePermissions and PageTypes. * - * Rewritten for recursive array support by ReiniUrban. + * Rewritten for recursive array support by Reini Urban. */ require_once 'lib/plugin/_BackendInfo.php'; @@ -56,8 +56,7 @@ function getDefaultArguments() { - return array('page' => '[pagename]' - ); + return array('page' => '[pagename]'); } function run($dbi, $argstr, &$request, $basepage) @@ -194,8 +193,6 @@ } } - - // Local Variables: // mode: php // tab-width: 8 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <var...@us...> - 2021-09-09 15:06:44
|
Revision: 10548 http://sourceforge.net/p/phpwiki/code/10548 Author: vargenau Date: 2021-09-09 15:06:43 +0000 (Thu, 09 Sep 2021) Log Message: ----------- lib/plugin/EditMetaData.php: use class error for error message Modified Paths: -------------- trunk/lib/plugin/EditMetaData.php Modified: trunk/lib/plugin/EditMetaData.php =================================================================== --- trunk/lib/plugin/EditMetaData.php 2021-09-08 11:54:16 UTC (rev 10547) +++ trunk/lib/plugin/EditMetaData.php 2021-09-09 15:06:43 UTC (rev 10548) @@ -158,7 +158,7 @@ $html->pushContent($form); } else { - $html->pushContent(HTML::em(_("Requires WikiAdmin privileges to edit."))); + $html->pushContent(HTML::p(array('class' => 'error'), _("Requires WikiAdmin privileges to edit."))); } return $html; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |