1
0

Minor Bugfixes.

This commit is contained in:
rWatcher 2011-02-02 23:51:32 -05:00
parent d8c6b1f4cf
commit 92ca31827e
4 changed files with 14 additions and 10 deletions

View File

@ -32,7 +32,7 @@ class EXIF_GPS_Controller extends Controller {
->order_by("exif_coordinates.latitude", "ASC")
->descendants();
$curr_album = ORM::factory("item")->where("id", "=", $type_id)->find_all();
$map_title = $curr_album[0]->name;
$map_title = $curr_album[0]->title;
} elseif ($map_type == "user") {
// Generate an array of all items uploaded by the current user that
// have exif gps coordinates and order by latitude (to group items

View File

@ -50,16 +50,18 @@ class exif_gps_task_Core {
$completed = $task->get("completed");
// Generate an array of the next 100 photos to check.
$all_photos = ORM::factory("item")
->where("id", ">", $last_id)
->where("type", "=", "photo")
->find_all(100);
//$all_photos = ORM::factory("item")
// ->where("id", ">", $last_id)
// ->where("type", "=", "photo")
// ->order_by("id")
// ->find_all(100);
// Check each photo in the array to see if it already has exif gps data associated with it.
// If it doesn't, attempt to extract gps coordinates.
foreach (ORM::factory("item")
->where("id", ">", $last_id)
->where("type", "=", "photo")
->order_by("id")
->find_all(100) as $item) {
$record = ORM::factory("exif_coordinate")->where("item_id", "=", $item->id)->find();

View File

@ -32,7 +32,7 @@ class EXIF_GPS_Controller extends Controller {
->order_by("exif_coordinates.latitude", "ASC")
->descendants();
$curr_album = ORM::factory("item")->where("id", "=", $type_id)->find_all();
$map_title = $curr_album[0]->name;
$map_title = $curr_album[0]->title;
} elseif ($map_type == "user") {
// Generate an array of all items uploaded by the current user that
// have exif gps coordinates and order by latitude (to group items

View File

@ -50,16 +50,18 @@ class exif_gps_task_Core {
$completed = $task->get("completed");
// Generate an array of the next 100 photos to check.
$all_photos = ORM::factory("item")
->where("id", ">", $last_id)
->where("type", "=", "photo")
->find_all(100);
//$all_photos = ORM::factory("item")
// ->where("id", ">", $last_id)
// ->where("type", "=", "photo")
// ->order_by("id")
// ->find_all(100);
// Check each photo in the array to see if it already has exif gps data associated with it.
// If it doesn't, attempt to extract gps coordinates.
foreach (ORM::factory("item")
->where("id", ">", $last_id)
->where("type", "=", "photo")
->order_by("id")
->find_all(100) as $item) {
$record = ORM::factory("exif_coordinate")->where("item_id", "=", $item->id)->find();