Changeset 27429


Ignore:
Timestamp:
Feb 20, 2014, 7:14:57 AM (7 years ago)
Author:
ddtddt
Message:

[extensions] - see_photos_by_user -

Location:
extensions/see_photos_by_user
Files:
2 edited

Legend:

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

    r27428 r27429  
    1818$showSPBU = $conf['see_photos_by_user_show'];
    1919
    20 if ($showSPBU == 1 OR $showSPBU == 3)
     20if (in_array($showSPBU, array(1,3)))
    2121{
    2222add_event_handler('blockmanager_apply' , 'add_link_SPBA');
     
    5757{$me = 'user-';}
    5858
    59  if (in_array($me, $tokens))
     59if (in_array($me, $tokens))
    6060 include(SPBA_PATH . 'pagespba.php');
    6161}
    6262
    63 
    64 
    65 if ($showSPBU == 2 OR $showSPBU == 3 OR $showSPBU == 4)
     63if (in_array($showSPBU, array(2,3,4)))
    6664{
    6765add_event_handler('blockmanager_register_blocks', 'register_users_menubar_blocks');
  • extensions/see_photos_by_user/pagespba.php

    r27428 r27429  
    5959$showSPBU = $conf['see_photos_by_user_show'];
    6060
    61 if ($showSPBU == 1 OR $showSPBU == 2 OR $showSPBU == 3)
     61if (in_array($showSPBU, array(1,2,3)))
    6262{
    6363//read auteur list
Note: See TracChangeset for help on using the changeset viewer.