Skip to content

Instantly share code, notes, and snippets.

@roelven
Created October 24, 2011 22:05
Show Gist options
  • Save roelven/1310482 to your computer and use it in GitHub Desktop.
Save roelven/1310482 to your computer and use it in GitHub Desktop.
attr = lighty.stat(lighty.env["physical.path"])
if (not attr) then
lighty.env["uri.path"] = "/index.php"
lighty.env["physical.rel-path"] = lighty.env["uri.path"]
lighty.env["physical.path"] = lighty.env["physical.doc-root"] .. lighty.env["physical.rel-path"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment