[ticket/10586] Removed file_exists() check because class_exists() covers that.

PHPBB3-10586
This commit is contained in:
David King 2012-02-17 14:21:28 -05:00
parent a0131b45f5
commit 969c6d42e3

View file

@ -42,7 +42,7 @@ if ($ext = $request->variable('ext', ''))
send_status_line(404, 'Not Found');
trigger_error($user->lang('EXTENSION_DISABLED', $ext));
}
else if (!file_exists("{$phpbb_root_path}ext/$ext/controller.$phpEx") || !class_exists($class))
else if (!class_exists($class))
{
send_status_line(404, 'Not Found');
trigger_error($user->lang('EXTENSION_CONTROLLER_MISSING', $ext));