Dotclear


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

Use ... token for variable argument list rather than func_get_args() whenever is possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.auth.php

    r3731 r3872  
    375375     * @return mixed 
    376376     */ 
    377     public function sudo($f) 
     377    public function sudo($f, ...$args) 
    378378    { 
    379379        if (!is_callable($f)) { 
    380380            throw new Exception($f . ' function doest not exist'); 
    381381        } 
    382  
    383         $args = func_get_args(); 
    384         array_shift($args); 
    385382 
    386383        if ($this->user_admin) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map