Browse Source

Merge pull request #126 from live627/g

! integrate_default_action wasn't formulated correctly
emanuele45 12 years ago
parent
commit
f2f3dc58a6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      index.php

+ 2 - 2
index.php

@@ -194,7 +194,7 @@ function smf_main()
 		fatal_lang_error('not_a_topic', false);
 
 	$no_stat_actions = array('dlattach', 'findmember', 'jsoption', 'requestmembers', 'smstats', '.xml', 'xmlhttp', 'verificationcode', 'viewquery', 'viewsmfile');
-	call_integration_hook('integrate_pre_log_stats', $no_stat_actions);
+	call_integration_hook('integrate_pre_log_stats', array(&$no_stat_actions));
 	// Do some logging, unless this is an attachment, avatar, toggle of editor buttons, theme option, XML feed etc.
 	if (empty($_REQUEST['action']) || !in_array($_REQUEST['action'], $no_stat_actions))
 	{
@@ -235,7 +235,7 @@ function smf_main()
 		if (empty($board) && empty($topic))
 		{
 			$call = '';
-			call_integration_hook('integrate_default_action', $call);
+			call_integration_hook('integrate_default_action', array(&$call));
 			$call = strpos($call, '::') !== false ? explode('::', $call) : $call;
 			if (!empty($call) && is_callable($call))
 				return $call;