mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/10586] Removed file_exists() check because class_exists() covers that.
PHPBB3-10586
This commit is contained in:
@@ -42,7 +42,7 @@ if ($ext = $request->variable('ext', ''))
|
|||||||
send_status_line(404, 'Not Found');
|
send_status_line(404, 'Not Found');
|
||||||
trigger_error($user->lang('EXTENSION_DISABLED', $ext));
|
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');
|
send_status_line(404, 'Not Found');
|
||||||
trigger_error($user->lang('EXTENSION_CONTROLLER_MISSING', $ext));
|
trigger_error($user->lang('EXTENSION_CONTROLLER_MISSING', $ext));
|
||||||
|
Reference in New Issue
Block a user