Revision: 8568
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8568&view=rev
Author: vargenau
Date: 2012-11-28 10:48:55 +0000 (Wed, 28 Nov 2012)
Log Message:
-----------
Add error message: Please provide SVG code to AsciiSVG plugin
Modified Paths:
--------------
trunk/lib/plugin/AsciiSVG.php
Modified: trunk/lib/plugin/AsciiSVG.php
===================================================================
--- trunk/lib/plugin/AsciiSVG.php 2012-11-28 10:16:18 UTC (rev 8567)
+++ trunk/lib/plugin/AsciiSVG.php 2012-11-28 10:48:55 UTC (rev 8568)
@@ -56,8 +56,10 @@
{
global $WikiTheme;
$args = $this->getArgs($argstr, $request);
- if (empty($this->source))
- return '';
+ if (empty($this->source)) {
+ return HTML::div(array('class' => "error"),
+ "Please provide SVG code to AsciiSVG plugin");
+ }
$html = HTML();
if (empty($WikiTheme->_asciiSVG)) {
$js = JavaScript('', array
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|