diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-23 15:06:24 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-02-23 15:06:24 +0000 |
commit | 2ed850652b30590cc685a2db74c5367f0d533486 (patch) | |
tree | ac8f5169f7b4cdc3c215da227b1c2b97696a95bf | |
parent | 679b8c397114690e5e91d9e89b2e46ec22ba1b0f (diff) |
Fix problem that movie::create was never being called. But strangely
enough photo::create would actually add the movie properly :-)
-rw-r--r-- | modules/local_import/controllers/local_import.php | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |