From 220c0f72159f68dbfa257b78634762c8ef30b5b9 Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 23 Nov 2025 16:44:37 +0100 Subject: [PATCH] the global dir variable was removed by xenforo --- event_rewards/php/bootstrap_user_upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event_rewards/php/bootstrap_user_upgrade.php b/event_rewards/php/bootstrap_user_upgrade.php index 474ec54..567eb40 100644 --- a/event_rewards/php/bootstrap_user_upgrade.php +++ b/event_rewards/php/bootstrap_user_upgrade.php @@ -30,7 +30,7 @@ if ($fileDir === false) require ($fileDir . '/src/XF.php'); -XF::start($dir); +XF::start($fileDir); //after upgrading to xenforo 2.3 is the global dir variable removed. $app = XF::setupApp('XF\Pub\App'); // Get Upgrade Repository