Index: LibTourist-3.0/LibTourist-3.0.lua
===================================================================
--- LibTourist-3.0/LibTourist-3.0.lua	(revision 872)
+++ LibTourist-3.0/LibTourist-3.0.lua	(working copy)
@@ -6166,7 +6166,39 @@
 --------------------------------------------------------------------------------------------------------
 --                                                CORE                                                --
 --------------------------------------------------------------------------------------------------------
-	local continentNames = { GetMapContinents() }
+-- LFO: Add this function for back-compat with pre-WoD mappping functions
+
+local WOW = {};
+
+if ( GetBuildInfo ) then
+	local v, b, d = GetBuildInfo();
+	WOW.build = b;
+	WOW.date = d;
+	local s,e,maj,min,dot = string.find(v, "(%d+).(%d+).(%d+)");
+	WOW.major = tonumber(maj);
+	WOW.minor = tonumber(min);
+	WOW.dot = tonumber(dot);
+else
+	WOW.major = 1;
+	WOW.minor = 9;
+	WOW.dot = 0;
+end
+
+local function remangle(...)
+	if (WOW.major > 5) then
+		t = {}
+		for i=1, select("#", ...), 2 do
+			k = select(i, ...)
+			v = select(i+1, ...)
+			t[#t+1] = v
+		end
+		return t
+	else
+		return { ... }
+	end
+end
+
+	local continentNames = remangle(GetMapContinents())
 	local doneZones = {}
 	local zoneIndices = {}
 
@@ -6232,6 +6264,18 @@
 		end
 	end
 	
+	for continentID, continentName in ipairs(continentNames) do
+		if not zones[continentName] then
+			local z = {}
+			z.type = zones[BZ["Outland"]].type
+			z.yards = zones[BZ["Outland"]].yards
+			z.x_offset = zones[BZ["Outland"]].x_offset
+			z.y_offset = zones[BZ["Outland"]].y_offset
+			z.continent = continentName
+			
+			zones[continentName] = z
+		end
+	end
 		
 	-- Hack:
 	-- For the zones below, UpdateMapHighlight() does not return name and map data for the city icon on the continent map
@@ -6298,7 +6342,7 @@
 	for continentID, continentName in ipairs(continentNames) do
 		SetMapZoom(continentID)
 		
-		local zoneNames = { GetMapZones(continentID) }
+		local zoneNames = remangle (GetMapZones(continentID))
 		local continentYards = zones[continentName] and zones[continentName].yards or 0
 
 		-- First, build a collection of zone indices (numbers of the zones within a continent)
