mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10586] Moved some loading stuff below extension controller, updated tests
PHPBB3-10586
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
<?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/');
|
||||
$this->template->set_ext_dir_prefix($this->phpbb_root_path . 'ext/foo/bar/');
|
||||
|
||||
$template->set_filenames(array(
|
||||
$this->template->set_filenames(array(
|
||||
'body' => 'foobar_body.html'
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user