OSDN Git Service

Cleanup, shrink, check do_plugin_init() return value
authorhenoheno <henoheno>
Mon, 9 Aug 2004 14:09:42 +0000 (23:09 +0900)
committerhenoheno <henoheno>
Mon, 9 Aug 2004 14:09:42 +0000 (23:09 +0900)
lib/plugin.php

index 6e994a6..f309613 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: plugin.php,v 1.2 2004/08/09 13:57:41 henoheno Exp $
+// $Id: plugin.php,v 1.3 2004/08/09 14:09:42 henoheno Exp $
 //
 
 // ¥×¥é¥°¥¤¥óÍѤË̤ÄêµÁ¤Î¥°¥í¡¼¥Ð¥ëÊÑ¿ô¤òÀßÄê
@@ -84,7 +84,7 @@ function do_plugin_convert($name, $args = '')
        global $digest;
 
        if(do_plugin_init($name) === FALSE)
-               die_message("Plugin init failed: $name");
+               return "[Plugin init failed: $name]";
 
        if ($args !== '') {
                $aryargs = csv_explode(',', $args);
@@ -112,7 +112,7 @@ function do_plugin_inline($name, $args, & $body)
        global $digest;
 
        if(do_plugin_init($name) === FALSE)
-               die_message("Plugin init failed: $name");
+               return "[Plugin init failed: $name]";
 
        if ($args !== '') {
                $aryargs = csv_explode(',', $args);