[ticket/10586] Remove handle() from abstract class, undo change in index.php

PHPBB3-10586
This commit is contained in:
David King 2012-03-28 16:37:42 -04:00
parent 7071110d9a
commit 7b091f18a8
3 changed files with 2 additions and 9 deletions

View file

@ -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();
} }

View file

@ -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
*/ */

View file

@ -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));