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() → [])

Location:
plugins/fairTrackbacks
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/fairTrackbacks/_define.php

    r3731 r3874  
    1717    "Olivier Meunier",          // Author 
    1818    '1.1',                      // Version 
    19     array( 
     19    [ 
    2020        'permissions' => 'usage,contentadmin', 
    2121        'priority'    => 200, 
    2222        'type'        => 'plugin' 
    23     ) 
     23    ] 
    2424); 
  • plugins/fairTrackbacks/class.dc.filter.fairtrackbacks.php

    r3731 r3874  
    3737        try 
    3838        { 
    39             $default_parse = array('scheme' => '', 'host' => '', 'path' => '', 'query' => ''); 
     39            $default_parse = ['scheme' => '', 'host' => '', 'path' => '', 'query' => '']; 
    4040            $S             = array_merge($default_parse, parse_url($site)); 
    4141 
     
    4545 
    4646            # Check incomink link page 
    47             $post     = $this->core->blog->getPosts(array('post_id' => $post_id)); 
     47            $post     = $this->core->blog->getPosts(['post_id' => $post_id]); 
    4848            $post_url = $post->getURL(); 
    4949            $P        = array_merge($default_parse, parse_url($post_url)); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map