Ignore:
Timestamp:
Nov 10, 2014, 11:38:20 PM (10 years ago)
Author:
ddtddt
Message:

[extensions] - see_photos_by_user - users home page

File:
1 edited

Legend:

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

    r30403 r30415  
    1818
    1919include_once(SPBA_PATH . 'include/function.see.inc.php');
    20 
    2120global $conf;
    22 $showSPBU = $conf['see_photos_by_user_show'];
    2321
    2422/*init plugin - filter http*/
    2523add_event_handler('loc_end_section_init', 'section_init_SPBA');
    26 
    2724function section_init_SPBA() {
    2825    /*init plugin lang*/
     
    6663 
    6764}
     65
     66
     67
     68
    6869/*Schow link in menu*/
    69 if (in_array($showSPBU, array(1, 3))) {
     70if ($conf['see_photos_by_user_show']==1) {
    7071    add_event_handler('blockmanager_apply', 'add_link_SPBA');
    7172}
     
    9394
    9495/*schow users menu*/
    95 if (in_array($showSPBU, array(2, 3, 4))) {
     96if ($conf['see_photos_by_user_show']==2) {
    9697    add_event_handler('blockmanager_register_blocks', 'register_users_menubar_blocks');
    9798    add_event_handler('blockmanager_apply', 'users_apply');
Note: See TracChangeset for help on using the changeset viewer.