Comparison

plugins/mod_admin_adhoc.lua @ 4595:bd6dc94d60e9

mod_admin_adhoc: Use module:depends()
author Kim Alvefur <zash@zash.se>
date Wed, 07 Mar 2012 21:14:08 +0100
parent 4594:565ea0c1a7ea
child 4780:4b8f2b91826c
comparison
equal deleted inserted replaced
4594:565ea0c1a7ea 4595:bd6dc94d60e9
22 local timer_add_task = require "util.timer".add_task; 22 local timer_add_task = require "util.timer".add_task;
23 local dataforms_new = require "util.dataforms".new; 23 local dataforms_new = require "util.dataforms".new;
24 local array = require "util.array"; 24 local array = require "util.array";
25 local modulemanager = require "modulemanager"; 25 local modulemanager = require "modulemanager";
26 26
27 module:depends"adhoc";
27 local adhoc_new = module:require "adhoc".new; 28 local adhoc_new = module:require "adhoc".new;
28 29
29 function add_user_command_handler(self, data, state) 30 function add_user_command_handler(self, data, state)
30 local add_user_layout = dataforms_new{ 31 local add_user_layout = dataforms_new{
31 title = "Adding a User"; 32 title = "Adding a User";