mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10586] Removed file_exists() check because class_exists() covers that.
PHPBB3-10586
This commit is contained in:
parent
a0131b45f5
commit
969c6d42e3
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||||
|
|
Loading…
Add table
Reference in a new issue