Changeset 26651


Ignore:
Timestamp:
01/12/14 13:35:53 (6 years ago)
Author:
ddtddt
Message:

[extensions] - see_my_photos - add nb photos to menubar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/see_my_photos/main.inc.php

    r26641 r26651  
    2222 { 
    2323  global $conf, $user; 
     24         
    2425   $query = ' 
    2526  SELECT DISTINCT(id) 
     
    3031  $result = pwg_query($query); 
    3132  $row = pwg_db_fetch_assoc($result); 
     33$nbp=count(array_from_query($query, 'id')); 
     34 
    3235 if (!is_a_guest() and !empty($row)) 
    3336  {   
     
    4144        'URL' => make_index_url(array('section' => 'see_my_photos')), 
    4245        'TITLE' => l10n('My photos'), 
    43         'NAME' => l10n('My photos') 
     46        'NAME' => l10n('My photos').' ('.$nbp.')', 
    4447        ) 
    4548      ) 
     
    5558  include(SMP_PATH . 'pagessmp.php'); 
    5659 } 
    57  
    58  
    5960?> 
Note: See TracChangeset for help on using the changeset viewer.