Changeset 96858 in spip-zone


Ignore:
Timestamp:
Apr 29, 2016, 9:32:23 AM (4 years ago)
Author:
kent1@…
Message:

Petit nettoyage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/shortcut_url/trunk/shortcut_url_pipelines.php

    r96664 r96858  
    2121function autoriser_menugrandeentree($faire, $type, $id, $qui, $opt){
    2222
    23                 if(!in_array($type ,array('menuaccueil','menuedition','menupublication','menuadministration','menuconfiguration','menushortcuturl')))
    24                         return false;
    25                 if(!in_array($type ,array('menuaccueil','menushortcuturl')) && $qui['statut'] != '0minirezo')
    26                         return false;
     23        if(!in_array($type ,array('menuaccueil','menuedition','menupublication','menuadministration','menuconfiguration','menushortcuturl'))){
     24                return false;
     25        }
    2726
    2827        return true;
     
    109108
    110109function autoriser_menushortcuturl_menu($faire, $type, $id, $qui, $opt){
    111         return in_array($qui['statut'] ,array('1comite','0minirezo')) && count($qui['restreint']) == 0;
     110        return in_array($qui['statut'], array('1comite','0minirezo')) && count($qui['restreint']) == 0;
    112111}
    113112
     
    158157        if(test_espace_prive()){
    159158                $plugins[] = 'topojson';
    160 
    161159        }
    162160        return $plugins;
    163161}
    164 
    165 ?>
Note: See TracChangeset for help on using the changeset viewer.