Explorar o código

Files to include are optionals

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele %!s(int64=12) %!d(string=hai) anos
pai
achega
b2785a98b6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;