OSDN Git Service

Cleanup. Rename defines and functions. Shrink. Do one thing well.
[pukiwiki/pukiwiki.git] / plugin / calendar_read.inc.php
index e3fb1e6..15c893f 100644 (file)
@@ -1,19 +1,27 @@
 <?php
-// $Id: calendar_read.inc.php,v 1.5 2003/01/27 05:38:44 panda Exp $
+/////////////////////////////////////////////////
+// PukiWiki - Yet another WikiWikiWeb clone.
+//
+// $Id: calendar_read.inc.php,v 1.7 2004/07/31 03:09:20 henoheno Exp $
+//
 
 function plugin_calendar_read_convert()
 {
        global $command;
-       
+
        $command = 'read';
-       
-       if (!file_exists(PLUGIN_DIR.'calendar.inc.php')) {
+
+       if (!file_exists(PLUGIN_DIR.'calendar.inc.php'))
+       {
                return FALSE;
        }
        require_once PLUGIN_DIR.'calendar.inc.php';
-       
-       return call_user_func_array('plugin_calendar_convert',
-               func_num_args() ? func_get_args() : array()
-       );
+       if (!function_exists('plugin_calendar_convert'))
+       {
+               return FALSE;
+       }
+
+       $args = func_num_args() ? func_get_args() : array();
+       return call_user_func_array('plugin_calendar_convert',$args);
 }
 ?>