diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-30 14:33:49 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-30 14:33:49 +0000 |
commit | 6c9f16f82e911e1b2c05918f9b8ce0d78fb3aa55 (patch) | |
tree | 30dc8373ce37fab5ac71d2a7b2902da0c3535e65 /lib | |
parent | 38c8fad89c24a031b4c88e94066797a00b7774ab (diff) | |
download | acf-core-6c9f16f82e911e1b2c05918f9b8ce0d78fb3aa55.tar.bz2 acf-core-6c9f16f82e911e1b2c05918f9b8ce0d78fb3aa55.tar.xz |
Cleaned up acf.conf, removed hardcoded /usr/share/acf paths.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/roles.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/roles.lua b/lib/roles.lua index 0366a30..bfd45cf 100644 --- a/lib/roles.lua +++ b/lib/roles.lua @@ -17,7 +17,7 @@ end -- Return a list of *controller.lua files list_controllers = function(self) local list = {} - for file in fs.find(".*controller%.lua", "/usr/share/acf", true) do + for file in fs.find(".*controller%.lua", self.conf.appdir, true) do if not string.find(file, "acf_") then list[#list + 1] = file end @@ -29,7 +29,7 @@ end -- Return information about all or specified controller files get_controllers = function(self,pre,controller) --we get all the controllers - local list = roles.list_controllers() + local list = roles.list_controllers(self) --we need to grab the directory and name of file local temp = {} for k,v in pairs(list) do |