Browse Source

Oups : Rector passe gentiment les constantes en majuscule… mais elles sont sensibles à la casse. Comme celles là sont publiques, on laisse comme avant

remotes/1642440088051456804/master
Matthieu Marcillaud 1 year ago
parent
commit
1b45a20321
  1. 6
      ecrire/inc/prepare_recherche.php
  2. 4
      ecrire/urls/page.php

6
ecrire/inc/prepare_recherche.php

@ -21,8 +21,8 @@ if (!defined('_ECRIRE_INC_VERSION')) {
}
include_spip('inc/rechercher');
if (!defined('_DELAI_CACHE_RESULTATS')) {
define('_DELAI_CACHE_RESULTATS', 600);
if (!defined('_DELAI_CACHE_resultats')) {
define('_DELAI_CACHE_resultats', 600);
}
/**
@ -60,7 +60,7 @@ function inc_prepare_recherche_dist(
$rows = null;
static $cache = [];
$delai_fraicheur = min(
\_DELAI_CACHE_RESULTATS,
\_DELAI_CACHE_resultats,
time() - ($GLOBALS['meta']['derniere_modif'] ?? 0)
);

4
ecrire/urls/page.php

@ -37,8 +37,8 @@ function _generer_url_page($type, $id, $args = '', $ancre = '') {
}
}
$url = \_DEBUT_URLS_PAGE . $type . \_SEPARATEUR_URLS_PAGE
. $id . \_TERMINAISON_URLS_PAGE;
$url = \_debut_urls_page . $type . \_debut_urls_page
. $id . \_debut_urls_page;
if ($args) {
$args = strpos($url, '?') ? "&$args" : "?$args";

Loading…
Cancel
Save