Changeset 234


Ignore:
Timestamp:
07/22/10 14:55:09 (19 months ago)
Author:
fuze
Message:

критерий показа ссылки "добавить фото": теперь не учитываются фото в общих альбомах.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fuze/components/users/frontend.php

    r217 r234  
    695695 
    696696    $usr['photos_count']                = (int)usrPhotoCount($id); 
    697         $usr['can_add_foto']            = ((usrPhotoCount($usr['id'])<$cfg['photosize'] || $cfg['photosize']==0) && $cfg['sw_photo']); 
     697        $usr['can_add_foto']            = ((usrPhotoCount($usr['id'], false)<$cfg['photosize'] || $cfg['photosize']==0) && $cfg['sw_photo']); 
    698698    $usr['board_count']                 = (int)$inDB->rows_count('cms_board_items', "user_id=$id AND published=1"); 
    699699    $usr['comments_count']              = (int)$inDB->rows_count('cms_comments', "user_id=$id AND published=1"); 
Note: See TracChangeset for help on using the changeset viewer.