Vergleich inc/class_plugins.php - 1.6.2 - 1.6.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: class_plugins.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id: class_plugins.php 5624 2011-10-02 19:07:56Z ralgith $

 */

class pluginSystem

 */

class pluginSystem

Zeile 96Zeile 96
					{
require_once $hook['file'];
}

					{
require_once $hook['file'];
}

					$oldreturnargs = $returnargs; // why is this line of code here?

 
					

					

					$returnargs = call_user_func_array($hook['function'], array(&$arguments));


					$func = $hook['function'];
$returnargs = $func($arguments);

					

if($returnargs)

					

if($returnargs)

Zeile 113Zeile 113
	}

/**

	}

/**

	 * DEPRECIATED
* Run the hooks that have plugins but passes REQUIRED argument by reference.
* This is a separate function to provide backwards compat with PHP 4.

	 * Run the hooks that have plugins but passes REQUIRED argument that is received by reference.
* This argument must be received by reference in the plugin file!
* This is a separate function to allow by reference calls for things you cannot use the $var = $plugins->run_hooks("hook_name", $var) syntax.

	 *
* @param string The name of the hook that is run.
* @param string The argument for the hook that is run - passed by reference. The passed value MUST be a variable

	 *
* @param string The name of the hook that is run.
* @param string The argument for the hook that is run - passed by reference. The passed value MUST be a variable

Zeile 139Zeile 139
						require_once $hook['file'];
}


						require_once $hook['file'];
}


					call_user_func_array($hook['function'], array(&$arguments));				


					$func = $hook['function'];
$returnargs = $func($arguments);

				}
}
}
$this->current_hook = '';

				}
}
}
$this->current_hook = '';

	}	

	}


/**
* Remove a specific hook.


/**
* Remove a specific hook.