From d349400531c780715a54ff9537406546217c26ec Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 8 Nov 2009 14:02:09 -0800 Subject: Fix an accidental old use of $photo in the extension renaming code. --- modules/gallery/controllers/movies.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery/controllers') diff --git a/modules/gallery/controllers/movies.php b/modules/gallery/controllers/movies.php index 6200e8b4..5e78376b 100644 --- a/modules/gallery/controllers/movies.php +++ b/modules/gallery/controllers/movies.php @@ -66,7 +66,7 @@ class Movies_Controller extends Items_Controller { if ($valid) { $new_ext = pathinfo($form->edit_item->filename->value, PATHINFO_EXTENSION); - $old_ext = pathinfo($photo->name, PATHINFO_EXTENSION); + $old_ext = pathinfo($movie->name, PATHINFO_EXTENSION); if (strcasecmp($new_ext, $old_ext)) { $form->edit_item->filename->add_error("illegal_extension", 1); $valid = false; -- cgit v1.2.3