소스 검색

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

Signed-off-by: emanuele <[email protected]>
emanuele 12 년 전
부모
커밋
ad398323e8
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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');