diff options
-rw-r--r-- | main.lisp | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -87,11 +87,13 @@ (:mst-plus #p"/usr/lib/") (:nfs.net #p"/usr/local/lib/"))))) (when (null *action*) - (setq *action* (if *post-number* - (if (eq *method* :post) - :post-trackback - :view) - :index))) + (setq *action* (or (let ((query-action (getf *query* :action nil))) + (and query-action (keywordify query-action))) + (if *post-number* + (if (eq *method* :post) + :post-trackback + :view) + :index)))) (clsql:push-library-path *script-dir*) (clsql:push-library-path #p"/usr/local/lib/") (push *script-dir* clsql-sys:*foreign-library-search-paths*) |