Changeset 41820 in spip-zone


Ignore:
Timestamp:
Oct 20, 2010, 5:53:13 PM (9 years ago)
Author:
cedric@…
Message:

gerer le switch structure/ajax via styliser

Location:
_plugins_/z-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/z-core/public/styliser_par_z.php

    r41817 r41820  
    136136                                $flux['data'] = $f;
    137137                }
     138                elseif ($fond=='structure'
     139                        AND _request('var_zajax')
     140                        AND $f = find_in_path($prefix_path.'ajax'.".$ext")) {
     141                        $flux['data'] = substr($f,0,-strlen(".$ext"));
     142                }
    138143                // chercher le fond correspondant a la composition
    139144                elseif (isset($flux['args']['contexte']['composition'])
  • _plugins_/z-core/zcore_options.php

    r41816 r41820  
    99
    1010if ($z = _request('var_zajax')) {
    11         incude_spip('public/styliser_par_z');
     11        include_spip('public/styliser_par_z');
    1212        if ($z_blocs = zcore_blocs(test_espace_prive())
    1313          AND in_array($z,$z_blocs)) {
Note: See TracChangeset for help on using the changeset viewer.