Skip to content

Commit

Permalink
Old names are back. New ones would be used only in version 6.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Guisasola committed Aug 9, 2013
1 parent 47fc73a commit c4d372f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cgilua/session.lua
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ end
-- Changes the session timeout.
-- @param t Number of seconds to maintain a session.
----------------------------------------------------------------------------
function M.settimeout (t)
function M.setsessiontimeout (t)
if type (t) == "number" then
timeout = t
end
Expand All @@ -166,7 +166,7 @@ end
-- Changes the session directory.
-- @param path String with the new session directory.
----------------------------------------------------------------------------
function M.setdir (path)
function M.setsessiondir (path)
path = gsub (path, "[/\\]$", "")
-- Make sure the given path is a directory
if not attributes (path, "mode") then
Expand Down Expand Up @@ -238,7 +238,7 @@ local already_enabled = false
-- It just calls the `open' function and register the `close' function
-- to be called at the end of the execution.
----------------------------------------------------------------------------
function M.enable ()
function M.enablesession ()
if already_enabled then -- avoid misuse when a script calls another one
return
else
Expand Down

0 comments on commit c4d372f

Please sign in to comment.