|
@@ -55,14 +55,14 @@ if necessary. DIR is ~ by default."
|
55
|
55
|
(let ((config-form (read in)))
|
56
|
56
|
(if (symbolp (car config-form))
|
57
|
57
|
;; Single site config: ignore CONFIG-KEY.
|
58
|
|
- (setf *config* (apply #'make-instance 'blog config-form))
|
|
58
|
+ (setf *config* (construct 'blog config-form))
|
59
|
59
|
;; Multi-site config: load config section for CONFIG-KEY.
|
60
|
60
|
(let* ((config-key-pathname (cl-fad:pathname-as-directory config-key))
|
61
|
61
|
(section (assoc config-key-pathname config-form
|
62
|
62
|
:key #'cl-fad:pathname-as-directory
|
63
|
63
|
:test #'equal)))
|
64
|
64
|
(if section
|
65
|
|
- (setf *config* (apply #'make-instance 'blog (cdr section))
|
|
65
|
+ (setf *config* (construct 'blog (cdr section))
|
66
|
66
|
(repo *config*) config-key)
|
67
|
67
|
(error 'unknown-config-section-error
|
68
|
68
|
:text (format nil "In ~A: No such key: '~A'." in config-key)))))
|