Browse Source

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

pull/1/head
cedric@yterium.com 3 years ago
parent
commit
4f886fcf5d
  1. 2
      paquet.xml
  2. 7
      zcore_options.php
  3. 2
      zcore_pipelines.php

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="Zcore"
categorie="outil"
version="2.8.1"
version="2.8.2"
etat="stable"
compatibilite="[3.0.0;3.2.*]"
logo="prive/themes/spip/images/z-core-32.png"

7
zcore_options.php

@ -28,6 +28,13 @@ if ($z = _request('var_zajax') AND !preg_match(",[^\w-],", $z)) {
if (!isset($GLOBALS['spip_pipeline']['recuperer_fond'])) $GLOBALS['spip_pipeline']['recuperer_fond'] = '';
$GLOBALS['spip_pipeline']['recuperer_fond'] .= '||zcore_recuperer_fond';
function zcore_recuperer_fond($flux) {
if (!function_exists('zcore_recuperer_fond_detecter_404')) {
include_spip('zcore_pipelines');
}
return zcore_recuperer_fond_detecter_404($flux);
}
if (
defined('_SPIPR_AUTH_DEMO')?
_SPIPR_AUTH_DEMO

2
zcore_pipelines.php

@ -70,7 +70,7 @@ function zcore_styliser($flux) {
*
* @return array
*/
function zcore_recuperer_fond($flux) {
function zcore_recuperer_fond_detecter_404($flux) {
static $empty_count = 0, $is_404 = false;
static $z_blocs_404, $z_blocs_404_nlength, $z_blocs_404_ncount;

Loading…
Cancel
Save