From: <var...@us...> - 2014-06-12 15:12:55
|
Revision: 8894 http://sourceforge.net/p/phpwiki/code/8894 Author: vargenau Date: 2014-06-12 15:12:50 +0000 (Thu, 12 Jun 2014) Log Message: ----------- HTML::tt --> HTML::samp Modified Paths: -------------- trunk/lib/plugin/HelloWorld.php Modified: trunk/lib/plugin/HelloWorld.php =================================================================== --- trunk/lib/plugin/HelloWorld.php 2014-06-12 15:10:07 UTC (rev 8893) +++ trunk/lib/plugin/HelloWorld.php 2014-06-12 15:12:50 UTC (rev 8894) @@ -24,9 +24,9 @@ * A simple demonstration WikiPlugin. * * Usage: - * <<HelloWorld?> + * <<HelloWorld>> * <<HelloWorld - * salutation="Greetings, " + * salutation="Greetings" * name=Wikimeister * >> * <<HelloWorld salutation=Hi >> @@ -48,8 +48,8 @@ // Establish default values for each of this plugin's arguments. function getDefaultArguments() { - return array('salutation' => "Hello,", - 'name' => "World"); + return array('salutation' => "Hello", + 'name' => "World"); } function run($dbi, $argstr, &$request, $basepage) @@ -58,7 +58,7 @@ // Any text that is returned will not be further transformed, // so use html where necessary. - $html = HTML::tt(fmt('%s: %s', $salutation, WikiLink($name, 'auto')), + $html = HTML::samp(fmt('%s, %s', $salutation, WikiLink($name, 'auto')), THE_END); return $html; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |