From 2ed850652b30590cc685a2db74c5367f0d533486 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 23 Feb 2009 15:06:24 +0000 Subject: Fix problem that movie::create was never being called. But strangely enough photo::create would actually add the movie properly :-) --- modules/local_import/controllers/local_import.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/local_import/controllers') diff --git a/modules/local_import/controllers/local_import.php b/modules/local_import/controllers/local_import.php index ce09240d..94a86012 100644 --- a/modules/local_import/controllers/local_import.php +++ b/modules/local_import/controllers/local_import.php @@ -66,10 +66,10 @@ class Local_Import_Controller extends Controller { $path = $this->input->post("path"); $pathinfo = pathinfo($path); set_time_limit(30); - if ($path_info["extension"] == "flv") { + if ($pathinfo["extension"] == "flv") { $movie = movie::create($parent, $path, basename($path), basename($path)); log::success("content", t("Added a movie"), - html::anchor("photos/{$photo->id}", t("view photo"))); + html::anchor("movies/{$movie->id}", t("view movie"))); message::success(t("Added movie %movie_title", array("movie_title" => $movie->title))); } else { $photo = photo::create($parent, $path, basename($path), basename($path)); -- cgit v1.2.3