summaryrefslogtreecommitdiff
path: root/plugins/phpbb3/phpbb3.module
diff options
context:
space:
mode:
authorChristoph Burschka2012-11-01 00:01:08 +0100
committerChristoph Burschka2012-11-01 00:01:08 +0100
commit1a1ec38c95a25143bea1e3da38c65a60437d7883 (patch)
tree4784357112e6fce315bef1fc21848df7a1b50154 /plugins/phpbb3/phpbb3.module
parentHuge overhaul to deal with the global variables more cleanly. Avoid globals w... (diff)
downloadejabberd-auth-php-1a1ec38c95a25143bea1e3da38c65a60437d7883.tar.gz
Huge overhaul to deal with the global variables more cleanly. Avoid globals wherever possible, to avoid collisions with CMS systems.
Diffstat (limited to 'plugins/phpbb3/phpbb3.module')
-rw-r--r--plugins/phpbb3/phpbb3.module5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/phpbb3/phpbb3.module b/plugins/phpbb3/phpbb3.module
index 4c58762..7502094 100644
--- a/plugins/phpbb3/phpbb3.module
+++ b/plugins/phpbb3/phpbb3.module
@@ -1,10 +1,11 @@
<?php
function phpbb3_init($config) {
+ global $phpbb_root_path;
$phpbb_root_path = $config['root_path'];
// Bootstrap the phpBB system.
require_once __DIR__ . '/phpbb3_bootstrap.php';
// Load the plugin.
- require_once __DIR__ . '/JabberAuthPhpBB3.php';
- return new JabberAuthPhpBB3($config['auth'], $config['db']);
+ require_once __DIR__ . '/BridgePhpBB3.php';
+ return new BridgePhpBB3($auth, $db);
}