OSDN Git Service

BugTrack2/139: Correct. Deleted a first space at preview.
[pukiwiki/pukiwiki.git] / plugin / img.inc.php
index 77a0d6c..a60fa95 100644 (file)
@@ -1,15 +1,19 @@
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: img.inc.php,v 1.13 2005/01/06 12:40:56 henoheno Exp $
+// $Id: img.inc.php,v 1.14 2005/05/28 13:31:57 henoheno Exp $
 //
 // Inline-image plugin
 
 define('PLUGIN_IMG_USAGE', '#img(): Usage: (URI-to-image[,right[,clear]])<br />' . "\n");
 define('PLUGIN_IMG_CLEAR', '<div style="clear:both"></div>' . "\n"); // Stop word-wrapping
 
-// ²èÁü¤ò¥¤¥ó¥é¥¤¥óɽ¼¨
+// Output inline-image tag from a URI
 function plugin_img_convert()
 {
+       if (PKWK_DISABLE_INLINE_IMAGE_FROM_URI)
+               return '#img(): PKWK_DISABLE_INLINE_IMAGE_FROM_URI prohibits this' .
+                       '<br>' . "\n";
+
        $args = func_get_args();
 
        // Check the 2nd argument first, for compatibility