Minor Bugfixes.
This commit is contained in:
parent
d8c6b1f4cf
commit
92ca31827e
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user