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/blogroll/class.dc.blogroll.php

    r3817 r3874  
    2525    } 
    2626 
    27     public function getLinks($params = array()) 
     27    public function getLinks($params = []) 
    2828    { 
    2929        $strReq = 'SELECT link_id, link_title, link_desc, link_href, ' . 
     
    4646    } 
    4747 
    48     public function getLangs($params = array()) 
     48    public function getLangs($params = []) 
    4949    { 
    5050        // Use post_lang as an alias of link_lang to be able to use the dcAdminCombos::getLangsCombo() function 
     
    207207    public function getLinksHierarchy($rs) 
    208208    { 
    209         $res = array(); 
     209        $res = []; 
    210210 
    211211        foreach ($rs->rows() as $k => $v) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map