Changeset 118448 in spip-zone for _plugins_/z-core/trunk


Ignore:
Timestamp:
Nov 7, 2019, 2:22:39 PM (2 weeks ago)
Author:
cedric@…
Message:

eviter une fonction indefinie quand le hit fait que charger du cache et que zcore_pipelines n'est pas charge

Location:
_plugins_/z-core/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/z-core/trunk/paquet.xml

    r115866 r118448  
    22        prefix="Zcore"
    33        categorie="outil"
    4         version="2.8.1"
     4        version="2.8.2"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.2.*]"
  • _plugins_/z-core/trunk/zcore_options.php

    r115866 r118448  
    2828if (!isset($GLOBALS['spip_pipeline']['recuperer_fond'])) $GLOBALS['spip_pipeline']['recuperer_fond'] = '';
    2929$GLOBALS['spip_pipeline']['recuperer_fond'] .= '||zcore_recuperer_fond';
     30
     31function zcore_recuperer_fond($flux) {
     32        if (!function_exists('zcore_recuperer_fond_detecter_404')) {
     33                include_spip('zcore_pipelines');
     34        }
     35        return zcore_recuperer_fond_detecter_404($flux);
     36}
    3037
    3138if (
  • _plugins_/z-core/trunk/zcore_pipelines.php

    r104837 r118448  
    7171 * @return array
    7272 */
    73 function zcore_recuperer_fond($flux) {
     73function zcore_recuperer_fond_detecter_404($flux) {
    7474        static $empty_count = 0, $is_404 = false;
    7575        static $z_blocs_404, $z_blocs_404_nlength, $z_blocs_404_ncount;
Note: See TracChangeset for help on using the changeset viewer.