Browse Source

Files to include are optionals

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

+ 2 - 2
Sources/Subs.php

@@ -4105,7 +4105,7 @@ function call_integration_hook($hook, $parameters = array())
  * @param string $file
  * @param bool $permanent = true if true, updates the value in settings table
  */
-function add_integration_function($hook, $function, $file, $permanent = true)
+function add_integration_function($hook, $function, $file = '', $permanent = true)
 {
 	global $smcFunc, $modSettings;
 
@@ -4159,7 +4159,7 @@ function add_integration_function($hook, $function, $file, $permanent = true)
  * @param string $function
  * @param string $file
  */
-function remove_integration_function($hook, $function, $file)
+function remove_integration_function($hook, $function, $file = '')
 {
 	global $smcFunc, $modSettings;