Update of /home/spip-cvs/spip/ecrire
In directory miel:/tmp/cvs-serv28016/ecrire
Modified Files:
aide_droite.php3 aide_gauche.php3 aide_index.php3
Log Message:
petit bug de l'aide lors changement de langue
Index: aide_droite.php3
RCS file: /home/spip-cvs/spip/ecrire/aide_droite.php3,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- aide_droite.php3 18 Dec 2003 19:15:53 -0000 1.31
+++ aide_droite.php3 19 Dec 2003 20:30:28 -0000 1.32
@@ -30,9 +30,11 @@
if (!$fichier_aide)
$html = _T('aide_non_disponible');
else {
- $lastmodified = filemtime($fichier_aide);
- $headers_only = http_last_modified($lastmodified);
- if ($headers_only) exit;
+ if ($var_lang) {
+ $lastmodified = filemtime($fichier_aide);
+ $headers_only = http_last_modified($lastmodified);
+ if ($headers_only) exit;
+ }
$html = join('', file($fichier_aide));
$html = substr($html, strpos($html,"<$aide>") + strlen("<$aide>"));
Index: aide_gauche.php3
RCS file: /home/spip-cvs/spip/ecrire/aide_gauche.php3,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- aide_gauche.php3 18 Dec 2003 22:10:29 -0000 1.38
+++ aide_gauche.php3 19 Dec 2003 20:30:28 -0000 1.39
@@ -2,9 +2,11 @@
include ("inc_version.php3");
-$lastmodified = filemtime("aide_gauche.php3");
-$headers_only = http_last_modified($lastmodified, time() + 24 * 3600);
-if ($headers_only) exit;
+if ($var_lang) {
+ $lastmodified = filemtime("aide_gauche.php3");
+ $headers_only = http_last_modified($lastmodified, time() + 24 * 3600);
+ if ($headers_only) exit;
+}
if (file_exists($flag_ecrire ? "inc_connect.php3" : "ecrire/inc_connect.php3")) {
include_ecrire("inc_auth.php3");
Index: aide_index.php3
RCS file: /home/spip-cvs/spip/ecrire/aide_index.php3,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- aide_index.php3 18 Dec 2003 19:15:53 -0000 1.9
+++ aide_index.php3 19 Dec 2003 20:30:28 -0000 1.10
@@ -2,9 +2,11 @@
include ("inc_version.php3");
-$lastmodified = filemtime("aide_index.php3");
-$headers_only = http_last_modified($lastmodified, time() + 24 * 3600);
-if ($headers_only) exit;
+if ($var_lang) {
+ $lastmodified = filemtime("aide_index.php3");
+ $headers_only = http_last_modified($lastmodified, time() + 24 * 3600);
+ if ($headers_only) exit;
+}
// Recuperer les infos de langue (preferences auteur), si possible
if (file_exists("inc_connect.php3")) {