From a71ab549eb10f3a8d799befe000775d4917073a2 Mon Sep 17 00:00:00 2001 From: funkydude Date: Wed, 10 Jul 2024 06:22:55 +0100 Subject: [PATCH] Compat code for WoW 11 --- .luacheckrc | 1 + LegionInvasionTimer.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.luacheckrc b/.luacheckrc index 6acd8db..d8680c9 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -11,6 +11,7 @@ ignore = { } globals = { "CreateFrame", + "C_AddOns", "C_AreaPoiInfo", "C_CurrencyInfo", "C_Map", diff --git a/LegionInvasionTimer.lua b/LegionInvasionTimer.lua index af24470..cc90497 100644 --- a/LegionInvasionTimer.lua +++ b/LegionInvasionTimer.lua @@ -25,6 +25,8 @@ frame:SetScript("OnDragStop", function(f) end) do local function openOpts() + local EnableAddOn = C_AddOns.EnableAddOn or EnableAddOn + local LoadAddOn = C_AddOns.LoadAddOn or LoadAddOn EnableAddOn("LegionInvasionTimer_Options") -- Make sure it wasn't left disabled for whatever reason LoadAddOn("LegionInvasionTimer_Options") LibStub("AceConfigDialog-3.0"):Open(addonName)