Photo Organizer

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Backend / Core
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version 2.34-rc1
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Photo Organizer
Opened by Gerd Schreiter - 2007-08-03
Last edited by Solomon Peachy - 2007-08-04

FS#227 - DB with site_display_random_photos

Using the function site_display_random_photos an the frontpage I'm getting postgresql error like:
ERROR: syntax error at or near "photo" at character 94. No photos are displayed on the frontpage.

So far I've seen you have changed the function:

2.33: $database,$type,$identifier,$rows,$columns,$framed
2.34-rc1: $database,$type,$identifier, $num_of_photos, $framed

Can you define it a little bit, what is the correct syntax now to use ?

best regards, Gerd

Closed by  Solomon Peachy
2007-08-04 13:32
Reason for closing:  Fixed
Additional comments about closing:  I've also updated the on-line documentation to reflect the new command syntax. The bundled documentation will be updated or eliminated by 2.34-final.
Gerd Schreiter commented on 2007-08-03 18:21

sorry, the error is on 2.34-rc1 !

Admin
Solomon Peachy commented on 2007-08-03 19:38

site_display_random_photos($dbh, $type, $id, $count, $framed)

$dbh -- Datebase handle
$type -- 'user', 'folder', or 'album'
$id -- the userid/folderid/albumid
$count -- number of images to display
$framed -- boolean, true if you want a "slide frame" drawn arount each image.

Admin
Solomon Peachy commented on 2007-08-03 19:39

The function is actually broken, though.. in several different areas. I'm working on a fix.

Admin
Solomon Peachy commented on 2007-08-03 19:52

I've checked in a fix in r1479 on the 2.34_release branch, as well as the trunk.

It'll go into the next -rc, or you can grab the fix directly out of subversion with:

svn diff -r1478:1479 svn://svn.shaftnet.org/po-devel/branches/2.34_release

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing