Browse Source

Don't restrict inclsionn to the board index... others want to load files, too.

Signed-off-by: John Rayes <[email protected]>
John Rayes 12 years ago
parent
commit
f4543d9fec
1 changed files with 1 additions and 3 deletions
  1. 1 3
      index.php

+ 1 - 3
index.php

@@ -236,9 +236,7 @@ function smf_main()
 		{
 			$call = 'BoardIndex';
 			call_integration_hook('integrate_default_action', $call);
-
-			if ($call == 'BoardIndex')
-				require_once($sourcedir . '/BoardIndex.php');
+			require_once($sourcedir . '/' . $call . '.php');
 
 			return $call;
 		}