mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-21 16:22:22 +02:00
[ticket/10586] Remove handle() from abstract class, undo change in index.php
PHPBB3-10586
This commit is contained in:
parent
7071110d9a
commit
7b091f18a8
@ -74,11 +74,4 @@ abstract class phpbb_extension_controller implements phpbb_extension_controller_
|
||||
$this->phpEx = $phpEx;
|
||||
$this->phpbb_root_path = $phpbb_root_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the request to display a page from an extension
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
abstract public function handle();
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ if (!defined('IN_PHPBB'))
|
||||
interface phpbb_extension_controller_interface
|
||||
{
|
||||
/**
|
||||
* handle the request to display a page from an extension
|
||||
* Handle the request to display a page from an extension
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
|
@ -47,7 +47,7 @@ if ($ext = $request->variable('ext', ''))
|
||||
|
||||
$controller = new $class;
|
||||
|
||||
if (!($controller instanceof phpbb_extension_controller))
|
||||
if (!($controller instanceof phpbb_extension_controller_interface))
|
||||
{
|
||||
send_status_line(500, 'Internal Server Error');
|
||||
trigger_error($user->lang('EXTENSION_CLASS_WRONG_TYPE', $class));
|
||||
|
Loading…
x
Reference in New Issue
Block a user