summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/PhpBB3.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/PhpBB3.php b/src/PhpBB3.php
index 1515aa8..0991a20 100644
--- a/src/PhpBB3.php
+++ b/src/PhpBB3.php
@@ -145,8 +145,11 @@ class PhpBB3 {
$userId = $this->getUserId($msg->getFrom());
$userName = $this->getUserName($userId);
+ # bring in the PhpBB globals
+ global $phpEx, $phpbb_root_path, $user, $auth,
+ $template, $cache, $db, $config;
+
# authenticate ourselves
- global $phpEx, $phpbb_root_path, $user, $auth;
$user->session_create($userId);
$auth->acl($user->data);