diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2006-08-20 19:50:08 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-08-20 19:50:08 +0000 |
| commit | 1332ec033fa7e4a65895a245dbbf3e6ed0377f13 (patch) | |
| tree | 54fd0ffb0754daa0b67390282d58b382c241339f /phpBB/install/index.php | |
| parent | 49d56f90e5cd5b21192949bd34dd0b2f10aa2921 (diff) | |
| download | forums-1332ec033fa7e4a65895a245dbbf3e6ed0377f13.tar forums-1332ec033fa7e4a65895a245dbbf3e6ed0377f13.tar.gz forums-1332ec033fa7e4a65895a245dbbf3e6ed0377f13.tar.bz2 forums-1332ec033fa7e4a65895a245dbbf3e6ed0377f13.tar.xz forums-1332ec033fa7e4a65895a245dbbf3e6ed0377f13.zip | |
- add some language variables i will need at another location. ;)
- also add X-Sendfile support to the download.php file.
git-svn-id: file:///svn/phpbb/trunk@6308 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/index.php')
| -rwxr-xr-x | phpBB/install/index.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 9a542dc2df..053ef19a17 100755 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -173,7 +173,7 @@ set_error_handler('msg_handler'); $user = new user(); $auth = new auth(); $cache = new cache(); -$template = new Template(); +$template = new template(); $template->set_custom_template('../adm/style', 'admin'); $template->assign_var('T_TEMPLATE_PATH', '../adm/style'); @@ -212,7 +212,7 @@ class module */ function create($module_type, $module_url, $selected_mod = false, $selected_submod = false) { - global $db, $config, $phpEx; + global $db, $config, $phpEx, $phpbb_root_path; $module = array(); @@ -285,10 +285,9 @@ class module $this->mode = $mode; } - /** - * @todo this could be written as $this->module = new $this->filename($this); ... no? (eval statement in install/index.php) - */ - eval("\$this->module = new $this->filename(\$this);"); + $module = $this->filename; + $this->module = new $module($this); + if (method_exists($this->module, 'main')) { $this->module->main($this->mode, $this->sub); |
