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

[extensions] - see_photos_by_user nothink only for photto added by user is actif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/see_photos_by_user/admin.php

    r30429 r30432  
    4545$template->assign('spbuT', $SPBU3T);
    4646
    47 $SPBU3T2 = array(
     47$PAPAB = pwg_db_fetch_assoc(pwg_query("SELECT state FROM " . PLUGINS_TABLE . " WHERE id = 'Photo_add_by';"));
     48if($PAPAB['state'] == 'active')
     49{
     50   $SPBU3T2 = array(
    4851    l10n('nothing'),
    4952    l10n('link Specials menu'),
    5053    l10n('bloc menu users'),
    51 );
    52 
    53 $SPBU32 = array(
     54    );
     55    $SPBU32 = array(
    5456    '-1',
    5557    '1',
    5658    '2',
    57 );
     59    );
     60}else{
     61    $SPBU3T2 = array(
     62    l10n('link Specials menu'),
     63    l10n('bloc menu users'),
     64    );
     65    $SPBU32 = array(
     66        '1',
     67        '2',
     68    );
     69}
    5870
    5971$template->assign('spbu2', $SPBU32);
Note: See TracChangeset for help on using the changeset viewer.