diff web/src/luan/modules/web/HttpLuan.java @ 178:2c08e7e27a70

minor - rename web fn from "page" to "service" git-svn-id: https://luan-java.googlecode.com/svn/trunk@179 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 23 Jun 2014 20:41:08 +0000
parents bdbd4740121f
children 75750ceb45ee
line wrap: on
line diff
--- a/web/src/luan/modules/web/HttpLuan.java	Mon Jun 23 07:57:12 2014 +0000
+++ b/web/src/luan/modules/web/HttpLuan.java	Mon Jun 23 20:41:08 2014 +0000
@@ -68,11 +68,11 @@
 					session.putValue("luan",luan);
 				}
 				tbl = (LuanTable)PackageLuan.require(luan,modName);
-				fn = (LuanFunction)tbl.get("page");
+				fn = (LuanFunction)tbl.get("service");
 			} else {
-				fn = (LuanFunction)tbl.get("page");
+				fn = (LuanFunction)tbl.get("service");
 				if( fn == null )
-					throw luan.exception( "function 'page' is not defined" );
+					throw luan.exception( "function 'service' is not defined" );
 				DeepCloner cloner = new DeepCloner();
 				luan = cloner.deepClone(luan);
 				fn = cloner.get(fn);