mail[Wesnoth-commits] r44302 - /trunk/data/lua/wml-tags.lua


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on July 18, 2010 - 17:21:
Author: silene
Date: Sun Jul 18 17:21:56 2010
New Revision: 44302

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44302&view=rev
Log:
Added compatibility hack to avoid executing the file twice.

Modified:
    trunk/data/lua/wml-tags.lua

Modified: trunk/data/lua/wml-tags.lua
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/lua/wml-tags.lua?rev=44302&r1=44301&r2=44302&view=diff
==============================================================================
--- trunk/data/lua/wml-tags.lua (original)
+++ trunk/data/lua/wml-tags.lua Sun Jul 18 17:21:56 2010
@@ -1,4 +1,9 @@
 --! #textdomain wesnoth
+
+-- Backward-compatibility hack to avoid executing the file twice due to
+-- old preload events. (To be removed in 1.11.) The hack assumes this
+-- file is the first one to be executed.
+if wesnoth.package["lua/helper.lua"] then return end
 
 local helper = wesnoth.require "lua/helper.lua"
 




Related Messages


Powered by MHonArc, Updated Sun Jul 18 17:40:14 2010