Browse Source

Rector sur ecrire/ (racine) avec config PHP 7.4

pull/4991/head
Matthieu Marcillaud 9 months ago
parent
commit
33f37523d4
  1. 6
      ecrire/inc_version.php
  2. 4
      ecrire/index.php

6
ecrire/inc_version.php

@ -449,9 +449,9 @@ define('_SPIP_EXTRA_VERSION', '-dev');
define('_DEV_VERSION_SPIP_COMPAT', '4.0.99');
// version des signatures de fonctions PHP
// (= date de leur derniere modif cassant la compatibilite et/ou necessitant un recalcul des squelettes)
$spip_version_code = 20211117;
$spip_version_code = 2021_11_17;
// version de la base SQL (= Date + numero incremental a 2 chiffres YYYYMMDDXX)
$spip_version_base = 2021021800;
$spip_version_base = 2021_02_18_00;
// version de l'interface a la base
$spip_sql_version = 1;
@ -598,5 +598,5 @@ if (!headers_sent() and _HEADER_COMPOSED_BY) {
}
}
$methode = (isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : ((php_sapi_name() == 'cli') ? 'cli' : ''));
$methode = ($_SERVER['REQUEST_METHOD'] ?? ((php_sapi_name() == 'cli') ? 'cli' : ''));
spip_log($methode . ' ' . self() . ' - ' . _FILE_CONNECT, _LOG_DEBUG);

4
ecrire/index.php

@ -112,7 +112,7 @@ if (
elseif (isset($GLOBALS['meta']['admin'])) {
if (preg_match('/^(.*)_(\d+)_/', $GLOBALS['meta']['admin'], $l)) {
list(, $var_f, $n) = $l;
[, $var_f, $n] = $l;
}
if (
_AJAX
@ -128,7 +128,7 @@ elseif (isset($GLOBALS['meta']['admin'])) {
die(_T('info_travaux_texte'));
}
if ($n) {
list(, $var_f, $n) = $l;
[, $var_f, $n] = $l;
if (tester_url_ecrire("base_$var_f")) {
$var_f = "base_$var_f";
}

Loading…
Cancel
Save