Minahito
minah****@users*****
2006年 6月 30日 (金) 15:06:08 JST
Index: xoops2jp/html/kernel/XCube_Delegate.class.php diff -u xoops2jp/html/kernel/XCube_Delegate.class.php:1.1.2.7 xoops2jp/html/kernel/XCube_Delegate.class.php:1.1.2.8 --- xoops2jp/html/kernel/XCube_Delegate.class.php:1.1.2.7 Fri Jun 30 14:58:03 2006 +++ xoops2jp/html/kernel/XCube_Delegate.class.php Fri Jun 30 15:06:08 2006 @@ -1,6 +1,6 @@ <?php /** - * @version $Id: XCube_Delegate.class.php,v 1.1.2.7 2006/06/30 05:58:03 minahito Exp $ + * @version $Id: XCube_Delegate.class.php,v 1.1.2.8 2006/06/30 06:06:08 minahito Exp $ */ @@ -147,6 +147,14 @@ { $priority = XCUBE_DELEGATE_PRIORITY_NORMAL; $filepath = null; + + if (!is_array($callback) && strstr($callback, '::') !== false) { + $tmp = explode("::", $callback); + if (count($tmp) == 2) { + $callback = array ($tmp[0], $tmp[1]); + } + } + if ($param2 !== null && is_int($param2)) { $priority = $param2; $filepath = ($param3 !== null && is_string($param3)) ? $param3 : null;