1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-01 14:30:32 +02:00

Merge pull request #662 from imkingdavid/ticket/10586

[ticket/10586] Use an abstract class that implements the interface
This commit is contained in:
Igor Wiedler
2012-03-30 10:59:46 -07:00
8 changed files with 92 additions and 26 deletions

View File

@@ -1,13 +1,10 @@
<?php
class phpbb_ext_foobar_controller implements phpbb_extension_controller_interface
class phpbb_ext_foobar_controller extends phpbb_extension_controller
{
public function handle()
{
global $template;
$template->set_ext_dir_prefix($phpbb_root_path . 'ext/error/class/');
$template->set_filenames(array(
$this->template->set_filenames(array(
'body' => 'index_body.html'
));

View File

@@ -5,8 +5,6 @@ class phpbb_ext_error_classtype_controller
public function handle()
{
global $template;
$template->set_ext_dir_prefix($phpbb_root_path . 'ext/error/classtype/');
$template->set_filenames(array(
'body' => 'index_body.html'
));

View File

@@ -1,13 +1,10 @@
<?php
class phpbb_ext_error_disabled_controller implements phpbb_extension_controller_interface
class phpbb_ext_error_disabled_controller extends phpbb_extension_controller
{
public function handle()
{
global $template;
$template->set_ext_dir_prefix($phpbb_root_path . 'ext/error/disabled/');
$template->set_filenames(array(
{
$this->template->set_filenames(array(
'body' => 'index_body.html'
));

View File

@@ -1,13 +1,10 @@
<?php
class phpbb_ext_foo_bar_controller implements phpbb_extension_controller_interface
class phpbb_ext_foo_bar_controller extends phpbb_extension_controller
{
public function handle()
{
global $template;
$template->set_ext_dir_prefix($phpbb_root_path . 'ext/foo/bar/');
$template->set_filenames(array(
$this->template->set_filenames(array(
'body' => 'foobar_body.html'
));

View File

@@ -1,13 +1,10 @@
<?php
class phpbb_ext_foobar_controller implements phpbb_extension_controller_interface
class phpbb_ext_foobar_controller extends phpbb_extension_controller
{
public function handle()
{
global $template;
$template->set_ext_dir_prefix($phpbb_root_path . 'ext/foobar/');
$template->set_filenames(array(
$this->template->set_filenames(array(
'body' => 'foobar_body.html'
));