Browse Source

Add object param to Subs::remove_integration_functio()

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
da0f5d2287
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/Subs.php

+ 2 - 2
Sources/Subs.php

@@ -4168,11 +4168,11 @@ function add_integration_function($hook, $function, $file = '', $object = false,
  * @param string $function
  * @param string $file
  */
-function remove_integration_function($hook, $function, $file = '')
+function remove_integration_function($hook, $function, $file = '', $object = false)
 {
 	global $smcFunc, $modSettings;
 
-	$integration_call = (!empty($file)) ? $function . ':' . $file : $function;
+	$integration_call = (!empty($file)) ? $function . ':' . $file .($object ? '#' : '') : $function;
 
 	// Get the permanent functions.
 	$request = $smcFunc['db_query']('', '