Ignore:
Timestamp:
Nov 11, 2009, 4:18:48 PM (14 years ago)
Author:
tiico
Message:

[Concours[ConcoursPhoto] Add param to mask author on images when a concours is prepared

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ConcoursPhoto/include/Concours.class.php

    r4142 r4252  
    729729                        //------------
    730730                        // Step 1
     731           
     732            if ($this->my_config['mask_author'] && $this->my_config['mask_author'] == true)
     733            {
     734                // Request for prepared concours
     735                $query = '
     736                    SELECT *
     737                    FROM ' . CONCOURS_TABLE .'
     738                    WHERE category =' . $page['category']['id'] . '
     739                    AND time_to_sec(TIMEDIFF(begin_date,now())) > 0
     740                                ';
     741                $result = pwg_query($query);
     742                if ($result)
     743                    $template->assign('INFO_AUTHOR',l10n('concours_img_author'));
     744            }
     745
     746           
    731747                        $query = '
    732748                                SELECT *
Note: See TracChangeset for help on using the changeset viewer.