<?php
-// $Id: calendar_read.inc.php,v 1.4 2002/11/29 00:09:01 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(func_num_args())
- $aryargs = func_get_args();
- else
- $aryargs = array();
-
- if(file_exists(PLUGIN_DIR."calendar.inc.php"))
+ $command = 'read';
+
+ if (!file_exists(PLUGIN_DIR.'calendar.inc.php'))
{
- require_once PLUGIN_DIR."calendar.inc.php";
- return call_user_func_array("plugin_calendar_convert",$aryargs);
+ return FALSE;
}
- else
+ require_once PLUGIN_DIR.'calendar.inc.php';
+ 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);
}
?>