summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-08 14:02:09 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-08 14:02:09 -0800
commitd349400531c780715a54ff9537406546217c26ec (patch)
tree9738016a45d14d9d377180fd147f7a0921f1a340
parentecadec6b84127db5749cc664b9b8878aca9d61ed (diff)
Fix an accidental old use of $photo in the extension renaming code.
-rw-r--r--modules/gallery/controllers/movies.php2
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;