Browse Source

Yes, as live627 (John Rayes) highlighted, better do things the right way

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

+ 2 - 1
index.php

@@ -236,7 +236,8 @@ function smf_main()
 		{
 			$call = '';
 			call_integration_hook('integrate_default_action', $call);
-			if (!empty($call) && function_exists($call))
+			$call = strpos($call, '::') !== false ? explode('::', $call) : $call;
+			if (!empty($call) && is_callable($call))
 				return $call;
 
 			require_once($sourcedir . '/BoardIndex.php');