Dotclear


Ignore:
Timestamp:
09/14/18 12:16:17 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

short notation for array (array() → [])

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/widgets/_widgets_functions.php

    r3751 r3874  
    9191        } 
    9292 
    93         $rs = $core->blog->getCategories(array('post_type' => 'post', 'without_empty' => !$w->with_empty)); 
     93        $rs = $core->blog->getCategories(['post_type' => 'post', 'without_empty' => !$w->with_empty]); 
    9494        if ($rs->isEmpty()) { 
    9595            return; 
     
    145145        } 
    146146 
    147         $params = array( 
     147        $params = [ 
    148148            'post_selected' => true, 
    149149            'no_content'    => true, 
    150150            'order'         => 'post_dt ' . strtoupper($w->orderby) 
    151         ); 
     151        ]; 
    152152 
    153153        $rs = $core->blog->getPosts($params); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map