- Status Closed
- Percent Complete
- 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
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 pizza
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.
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.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
sorry, the error is on 2.34-rc1 !
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.
The function is actually broken, though.. in several different areas. I'm working on a fix.
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