From: <var...@us...> - 2011-12-15 16:27:27
|
Revision: 8206 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8206&view=rev Author: vargenau Date: 2011-12-15 16:27:16 +0000 (Thu, 15 Dec 2011) Log Message: ----------- Check mandatory 'data' argument is provided. Modified Paths: -------------- trunk/lib/plugin/Chart.php trunk/pgsrc/Help%2FChartPlugin Modified: trunk/lib/plugin/Chart.php =================================================================== --- trunk/lib/plugin/Chart.php 2011-11-30 17:04:01 UTC (rev 8205) +++ trunk/lib/plugin/Chart.php 2011-12-15 16:27:16 UTC (rev 8206) @@ -73,7 +73,11 @@ global $WikiTheme; $args = $this->getArgs($argstr, $request); + if (!$args['data']) { + return $this->error(_("No mandatory 'data' argument provided.")); + } extract($args); + $html = HTML(); $js = JavaScript('', array ('src' => $WikiTheme->_findData('ASCIIsvg.js'))); $html->pushContent($js); Modified: trunk/pgsrc/Help%2FChartPlugin =================================================================== --- trunk/pgsrc/Help%2FChartPlugin 2011-11-30 17:04:01 UTC (rev 8205) +++ trunk/pgsrc/Help%2FChartPlugin 2011-12-15 16:27:16 UTC (rev 8206) @@ -1,4 +1,4 @@ -Date: Fri, 10 Sep 2010 13:46:13 +0000 +Date: Thu, 15 Dec 2011 17:25:35 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1) X-Rcs-Id: $Id$ Content-Type: application/x-phpwiki; @@ -44,7 +44,7 @@ |- | **data** | Graph data: a list of numbers separated by comma -| //none// +| //none (mandatory argument)// |} == Examples == This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |