Update of /home/spip-cvs/spip
In directory alan:/tmp/cvs-serv12250
Modified Files:
inc-calcul.php3 inc-public.php3
Log Message:
unification des <head>...</head>
Index: inc-calcul.php3
RCS file: /home/spip-cvs/spip/inc-calcul.php3,v
retrieving revision 1.118
retrieving revision 1.119
diff -u -d -r1.118 -r1.119
--- inc-calcul.php3 22 Oct 2004 08:49:24 -0000 1.118
+++ inc-calcul.php3 22 Oct 2004 18:04:37 -0000 1.119
@@ -146,6 +146,8 @@
// Charger le squelette et recuperer sa fonction principale
// (compilation automatique au besoin) et calculer
+ $page = array();
+
if ($skel) {
if ($fonc = charger_squelette($skel))
$page = $fonc(array('cache' => $cache), array($contexte));
@@ -170,6 +172,7 @@
}
// Retourner la structure de la page
+
return $page;
}
Index: inc-public.php3
RCS file: /home/spip-cvs/spip/inc-public.php3,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -d -r1.100 -r1.101
--- inc-public.php3 19 Oct 2004 19:56:02 -0000 1.100
+++ inc-public.php3 22 Oct 2004 18:04:37 -0000 1.101
@@ -106,17 +106,20 @@
@header("Cache-Control: no-cache,must-revalidate");
@header("Pragma: no-cache");
// Pour les autres donner l'heure de modif
- } else if ($lastmodified)
+ } else if ($lastmodified)
@Header ("Last-Modified: ".http_gmoddate($lastmodified)." GMT");
+ // si le squelette est nul se rabattre sur l'entete standard
+ spip_log("Page: " . $page['texte']);
+ if ($page['texte'])
@header("Content-Type: text/html; charset=".lire_meta('charset'));
-
+ else echo debut_entete($fond);
// Faudra-t-il post-traiter la page ?
- define('spip_active_ob', $flag_ob AND
+ define('spip_active_ob', $flag_ob AND
($var_debug OR $var_recherche OR $affiche_boutons_admin));
// Cas d'une page contenant uniquement du HTML :
- if ($page['process_ins'] == 'html') {
+ if ($page['process_ins'] == 'html') {
if (!spip_active_ob) {
echo $page['texte'];
$contenu = '';
@@ -125,7 +128,7 @@
}
// Cas d'une page contenant du PHP :
- else {
+ else {
// Evaluer la page
if (!spip_active_ob) {