Ignore:
Timestamp:
May 25, 2011, 1:50:37 PM (10 years ago)
Author:
rastapopoulos@…
Message:

Pouvoir appeler des actions depuis n'importe où en passant l'argument explicitement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/mediatheque/action/changer_mode_document.php

    r29017 r48093  
    1717
    1818// http://doc.spip.org/@action_changer_mode_document_dist
    19 function action_changer_mode_document_dist()
     19function action_changer_mode_document_dist($arg=null)
    2020{
    21         $securiser_action = charger_fonction('securiser_action', 'inc');
    22         $arg = $securiser_action();
     21        if(is_null($arg)){
     22                $securiser_action = charger_fonction('securiser_action', 'inc');
     23                $arg = $securiser_action();
     24        }
    2325
    2426        if (!preg_match(",^(\d+)\W(\w+)$,", $arg, $r))
Note: See TracChangeset for help on using the changeset viewer.