OSDN Git Service
(root)
/
nucleus-jp
/
nucleus-next.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX:MANAGER::instance()をstaticに
[nucleus-jp/nucleus-next.git]
/
nucleus
/
libs
/
MANAGER.php
diff --git
a/nucleus/libs/MANAGER.php
b/nucleus/libs/MANAGER.php
index
b30e5dd
..
ea9a5ad
100644
(file)
--- a/
nucleus/libs/MANAGER.php
+++ b/
nucleus/libs/MANAGER.php
@@
-72,7
+72,7
@@
class Manager
* $manager =& Manager::instance(); to get a reference to the object
\r
* instead of a copy
\r
*/
\r
* $manager =& Manager::instance(); to get a reference to the object
\r
* instead of a copy
\r
*/
\r
- public function &instance()
\r
+ public
static
function &instance()
\r
{
\r
static $instance = array();
\r
if ( empty($instance) )
\r
{
\r
static $instance = array();
\r
if ( empty($instance) )
\r
@@
-570,7
+570,7
@@
class Manager
&& !empty($this->plugins[$listener])
\r
&& method_exists($this->plugins[$listener], 'event_' . $eventName) )
\r
{
\r
&& !empty($this->plugins[$listener])
\r
&& method_exists($this->plugins[$listener], 'event_' . $eventName) )
\r
{
\r
- call_user_func(array(&$this->plugins[$listener], 'event_' . $eventName),
&$data
);
\r
+ call_user_func(array(&$this->plugins[$listener], 'event_' . $eventName),
array(&$data)
);
\r
}
\r
}
\r
}
\r
}
\r
}
\r
}
\r