Changeset 22

Show
Ignore:
Timestamp:
02/10/07 12:12:55 (2 years ago)
Author:
simon
Message:

Search by random.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Memories.pm

    r3 r22  
    114114 
    115115sub _recent_uploads { Memories::Photo->search_recent() } 
     116sub _random { Memories::Photo->search_random() } 
    116117 
    117118sub recent_uploads { shift->do_cached(\&_recent_uploads) } 
     119sub random { shift->do_cached(\&_random) } 
    118120sub tagcloud { shift->do_cached(\&_tagcloud) } 
    119121 
  • trunk/Memories/Photo.pm

    r21 r22  
    1515     recent => "uploaded", 
    1616     popular => "hit_count", 
    17      interesting => INTERESTINGNESS_ALGORITHM 
     17     interesting => INTERESTINGNESS_ALGORITHM, 
     18     random => "rand()" 
    1819); 
    1920