diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-08 14:02:09 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-08 14:02:09 -0800 |
commit | d349400531c780715a54ff9537406546217c26ec (patch) | |
tree | 9738016a45d14d9d377180fd147f7a0921f1a340 | |
parent | ecadec6b84127db5749cc664b9b8878aca9d61ed (diff) |
Fix an accidental old use of $photo in the extension renaming code.
-rw-r--r-- | modules/gallery/controllers/movies.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |