webmcp
diff libraries/mondelefant/example.lua @ 64:3d43a5cf17c1
Compatibility with Lua 5.2
author | jbe |
---|---|
date | Sun Apr 15 16:04:33 2012 +0200 (2012-04-15) |
parents | 9fdfb27f8e67 |
children |
line diff
1.1 --- a/libraries/mondelefant/example.lua Tue Apr 03 00:56:02 2012 +0200 1.2 +++ b/libraries/mondelefant/example.lua Sun Apr 15 16:04:33 2012 +0200 1.3 @@ -1,5 +1,5 @@ 1.4 #!/usr/bin/env lua 1.5 -require("mondelefant") 1.6 +mondelefant = require("mondelefant") 1.7 1.8 -- Standarddatenbankverbindung ist globale Variable 'db' 1.9 function mondelefant.class_prototype:get_db_conn() return db end 1.10 @@ -83,4 +83,4 @@ 1.11 sel:add_field("*") 1.12 sel:attach("m1", products, "product_id", "id", "product", "product_variants") 1.13 product_variants = sel:exec() 1.14 ---]] 1.15 \ No newline at end of file 1.16 +--]]