*
* CopyRight 2002 Y.MASUI GPL2
* http://masui.net/pukiwiki/ masui@masui.net
- *
+ *
* Êѹ¹ÍúÎò:
* 2002.04.08: pat¤µ¤ó¡¢¤ß¤Î¤ë¤µ¤ó¤Î»ØŦ¤Ë¤è¤ê¡¢¥ê¥ó¥¯À褬ÆüËܸì¤Î¾ì¹ç¤Ë
* ²½¤±¤ë¤Î¤ò½¤Àµ
- *
+ *
* 2002.06.17: plugin_recent_init()¤òÀßÄê
* 2002.07.02: <ul>¤Ë¤è¤ë½ÐÎϤËÊѹ¹¤·¹½Â¤²½
*
- * $id$
+ * $Id: recent.inc.php,v 1.11 2004/07/31 03:09:20 henoheno Exp $
*/
function plugin_recent_convert()
{
global $script,$BracketName,$date_format;
global $_recent_plugin_frame;
-
+
$recent_lines = 10;
- if (func_num_args())
- list($recent_lines) = func_get_args();
-
+ if (func_num_args()) {
+ $args = func_get_args();
+ if (is_numeric($args[0])) {
+ $recent_lines = $args[0];
+ }
+ }
+
$date = $items = '';
if (!file_exists(CACHE_DIR.'recent.dat')) {
return '';