Dotclear

Changeset 597:08c2eb1ecb30


Ignore:
Timestamp:
07/17/11 12:48:38 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
themes
Message:

Correction pour la gestion du tableau des types

Location:
plugins/simpleMenu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/simpleMenu/_define.php

    r587 r597  
    1616     /* Description*/         "Simple menu for Dotclear", 
    1717     /* Author */             "Franck Paul", 
    18      /* Version */            '0.8', 
     18     /* Version */            '0.9', 
    1919     array( 
    2020          'permissions' =>    'admin' 
  • plugins/simpleMenu/index.php

    r587 r597  
    8888 
    8989# Liste des types d'item de menu 
    90 $items = array('home' => array(__('Home'),false)); 
     90$items = new ArrayObject(); 
     91$items['home'] = new ArrayObject(array(__('Home'),false)); 
    9192 
    9293if (count($langs_combo) > 1) { 
    93      $items['lang'] = array(__('Language'),true); 
     94     $items['lang'] = new ArrayObject(array(__('Language'),true)); 
    9495} 
    9596if (count($categories_combo)) { 
    96      $items['category'] = array(__('Category'),true); 
     97     $items['category'] = new ArrayObject(array(__('Category'),true)); 
    9798} 
    9899if (count($months_combo) > 1) { 
    99      $items['archive'] = array(__('Archive'),true); 
     100     $items['archive'] = new ArrayObject(array(__('Archive'),true)); 
    100101} 
    101102if ($core->plugins->moduleExists('pages')) { 
    102103     if(count($pages_combo)) 
    103           $items['pages'] = array(__('Page'),true); 
     104          $items['pages'] = new ArrayObject(array(__('Page'),true)); 
    104105} 
    105106if ($core->plugins->moduleExists('tags')) { 
    106107     if (count($tags_combo) > 1) 
    107           $items['tags'] = array(__('Tags'),true); 
     108          $items['tags'] = new ArrayObject(array(__('Tags'),true)); 
    108109} 
    109110 
     
    112113$core->callBehavior('adminSimpleMenuAddType',$items); 
    113114 
    114 $items['special'] = array(__('User defined'),false); 
     115$items['special'] = new ArrayObject(array(__('User defined'),false)); 
    115116 
    116117$items_combo = array(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map