From: <var...@us...> - 2012-11-28 11:04:46
|
Revision: 8569 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8569&view=rev Author: vargenau Date: 2012-11-28 11:04:40 +0000 (Wed, 28 Nov 2012) Log Message: ----------- Add error message: Please provide source code to PhpHighlight plugin Modified Paths: -------------- trunk/lib/plugin/PhpHighlight.php Modified: trunk/lib/plugin/PhpHighlight.php =================================================================== --- trunk/lib/plugin/PhpHighlight.php 2012-11-28 10:48:55 UTC (rev 8568) +++ trunk/lib/plugin/PhpHighlight.php 2012-11-28 11:04:40 UTC (rev 8569) @@ -86,6 +86,10 @@ extract($this->getArgs($argstr, $request)); $source =& $this->source; + if (empty($source)) { + return HTML::div(array('class' => "error"), + "Please provide source code to PhpHighlight plugin"); + } $this->sanify_colors($string, $comment, $keyword, $bg, $default, $html); $this->set_colors($string, $comment, $keyword, $bg, $default, $html); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |