diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-01-04 08:53:32 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-01-04 08:53:32 +0000 |
commit | b264e1673bee009cb5d67c9c4e6bf684dcc285f8 (patch) | |
tree | 8018ea2fac709530c0d784eb9674139db5295aa7 | |
parent | 9832585948b19a416fc07bea3b1a30c0788d17fe (diff) | |
download | acf-core-b264e1673bee009cb5d67c9c4e6bf684dcc285f8.tar.bz2 acf-core-b264e1673bee009cb5d67c9c4e6bf684dcc285f8.tar.xz |
Made libdir load order match appdir load order, bumped to 0.9.1v0.9.1
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | acf.conf | 4 | ||||
-rw-r--r-- | app/acf_www-controller.lua | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -1,6 +1,6 @@ APP_NAME=core PACKAGE=acf-$(APP_NAME) -VERSION=0.9.0 +VERSION=0.9.1 P=$(PACKAGE)-$(VERSION) DISTDIR:=$(shell pwd)/$(P) @@ -2,7 +2,9 @@ # Directories where the application resides # appdir and libdir may be comma-separated lists -# do not place same name lib or prefix/controller files in multiple directories +# paths are checked from left to right +# for .lua and .lsp files - the first found file will be used +# for .roles and .menu files - all files will be combined appdir=/usr/share/acf/app/ libdir=/usr/share/acf/lib/ wwwdir=/usr/share/acf/www/ diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua index 017b574..fdabc0b 100644 --- a/app/acf_www-controller.lua +++ b/app/acf_www-controller.lua @@ -252,9 +252,7 @@ mvc.on_load = function (self, parent) parent_exception_handler = parent.exception_handler -- this sets the package path for us and our children - for p in string.gmatch(self.conf.libdir, "[^,]+") do - package.path= p .. "?.lua;" .. package.path - end + package.path = string.gsub(self.conf.libdir, ",", "/?.lua;") .. "/?.lua;" .. package.path sessionlib=require ("session") |