summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/simple_uploader.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-07-11 23:17:30 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-07-11 23:17:30 -0600
commit872b5eed4644bdd3e3645eb38a69fdd1ca5ee360 (patch)
treee6530601ee2442f653fc62e372a682984a7ffbf2 /modules/gallery/controllers/simple_uploader.php
parent8bfcf09b4c9628f13fdee2b958b3d11c9abce474 (diff)
parent214d977f4dc9ac78f4571a7cc89109fd95f5a2eb (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/simple_uploader.php')
-rw-r--r--modules/gallery/controllers/simple_uploader.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/gallery/controllers/simple_uploader.php b/modules/gallery/controllers/simple_uploader.php
index a059f986..75a7b810 100644
--- a/modules/gallery/controllers/simple_uploader.php
+++ b/modules/gallery/controllers/simple_uploader.php
@@ -58,13 +58,13 @@ class Simple_Uploader_Controller extends Controller {
$path_info = @pathinfo($temp_filename);
if (array_key_exists("extension", $path_info) &&
in_array(strtolower($path_info["extension"]), array("flv", "mp4"))) {
- $movie = movie::create($album, $temp_filename, $name, $title);
+ $item = movie::create($album, $temp_filename, $name, $title);
log::success("content", t("Added a movie"),
- html::anchor("movies/$movie->id", t("view movie")));
+ html::anchor("movies/$item->id", t("view movie")));
} else {
- $photo = photo::create($album, $temp_filename, $name, $title);
+ $item = photo::create($album, $temp_filename, $name, $title);
log::success("content", t("Added a photo"),
- html::anchor("photos/$photo->id", t("view photo")));
+ html::anchor("photos/$item->id", t("view photo")));
}
} catch (Exception $e) {
Kohana::log("alert", $e->__toString());
@@ -76,7 +76,7 @@ class Simple_Uploader_Controller extends Controller {
return;
}
unlink($temp_filename);
- print "FILEID: $photo->id";
+ print "FILEID: $item->id";
} else {
header("HTTP/1.1 400 Bad Request");
print "ERROR: Invalid Upload";