Diff of /mambo/branches/4.6/includes/core.classes.php
Parent Directory
|
Revision Log
|
Patch
| revision 1626, Wed Feb 27 08:50:15 2008 UTC | revision 1627, Thu Feb 28 03:14:33 2008 UTC | |
|---|---|---|
| # | Line 1946 | Line 1946 |
| 1946 | $result = array(); | $result = array(); |
| 1947 | if (isset( $this->_events[$event] )) { | if (isset( $this->_events[$event] )) { |
| 1948 | foreach ($this->_events[$event] as $func) { | foreach ($this->_events[$event] as $func) { |
| 1949 | $botargs = $args; | |
| 1950 | if (is_callable( $func[0] )) { | if (is_callable( $func[0] )) { |
| 1951 | $botparams = $this->_bots[$func[1]]->params; | $botparams = $this->_bots[$func[1]]->params; |
| 1952 | $args[] = new mosParameters($botparams); | $botargs[] = new mosParameters($botparams); |
| 1953 | $args[] = $event; | $botargs[] = $event; |
| 1954 | if ($doUnpublished) { | if ($doUnpublished) { |
| 1955 | $args[0] = $this->_bots[$func[1]]->published; | $botargs[0] = $this->_bots[$func[1]]->published; |
| 1956 | $result[] = call_user_func_array( $func[0], $args ); | $result[] = call_user_func_array( $func[0], $botargs ); |
| 1957 | } else if ($this->_bots[$func[1]]->published) { | } else if ($this->_bots[$func[1]]->published) { |
| 1958 | $result[] = call_user_func_array( $func[0], $args ); | $result[] = call_user_func_array( $func[0], $botargs ); |
| 1959 | } | } |
| 1960 | } | } |
| 1961 | } | } |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

