From 453fb76443898746b72a0a2ddd419cf8e54f4207 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 8 Sep 2009 20:00:04 -0700 Subject: Actually use the slug when creating new albums (instead of just converting the filename over). --- modules/gallery/controllers/albums.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/gallery/controllers') diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php index abcabfa6..8455d95c 100644 --- a/modules/gallery/controllers/albums.php +++ b/modules/gallery/controllers/albums.php @@ -107,7 +107,8 @@ class Albums_Controller extends Items_Controller { $this->input->post("name"), $this->input->post("title", $this->input->post("name")), $this->input->post("description"), - user::active()->id); + user::active()->id, + $this->input->post("slug")); log::success("content", "Created an album", html::anchor("albums/$new_album->id", "view album")); -- cgit v1.2.3