Changeset 27335 for trunk/include/functions_plugins.inc.php
- Timestamp:
- Feb 11, 2014, 10:45:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_plugins.inc.php
r27238 r27335 280 280 } 281 281 $args = func_get_args(); 282 array_shift($args); 282 283 283 284 foreach ($pwg_event_handlers[$event] as $priority => $handlers) … … 285 286 foreach ($handlers as $handler) 286 287 { 287 $args[ 1] = $data;288 $args[0] = $data; 288 289 289 290 if (!empty($handler['include_path'])) … … 292 293 } 293 294 294 $data = call_user_func_array($handler['function'], array_slice($args, 1));295 $data = call_user_func_array($handler['function'], $args); 295 296 } 296 297 } … … 342 343 } 343 344 $args = func_get_args(); 345 array_shift($args); 344 346 345 347 foreach ($pwg_event_handlers[$event] as $priority => $handlers) … … 352 354 } 353 355 354 call_user_func_array($handler['function'], array_slice($args,1));356 call_user_func_array($handler['function'], $args); 355 357 } 356 358 }
Note: See TracChangeset
for help on using the changeset viewer.