mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10586] Remove handle() from abstract class, undo change in index.php
PHPBB3-10586
This commit is contained in:
parent
7071110d9a
commit
7b091f18a8
3 changed files with 2 additions and 9 deletions
|
@ -74,11 +74,4 @@ abstract class phpbb_extension_controller implements phpbb_extension_controller_
|
||||||
$this->phpEx = $phpEx;
|
$this->phpEx = $phpEx;
|
||||||
$this->phpbb_root_path = $phpbb_root_path;
|
$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
|
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
|
* @return null
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -47,7 +47,7 @@ if ($ext = $request->variable('ext', ''))
|
||||||
|
|
||||||
$controller = new $class;
|
$controller = new $class;
|
||||||
|
|
||||||
if (!($controller instanceof phpbb_extension_controller))
|
if (!($controller instanceof phpbb_extension_controller_interface))
|
||||||
{
|
{
|
||||||
send_status_line(500, 'Internal Server Error');
|
send_status_line(500, 'Internal Server Error');
|
||||||
trigger_error($user->lang('EXTENSION_CLASS_WRONG_TYPE', $class));
|
trigger_error($user->lang('EXTENSION_CLASS_WRONG_TYPE', $class));
|
||||||
|
|
Loading…
Add table
Reference in a new issue