@@ -115,11 +115,9 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | if ($statut and test_espace_prive()) { |
| 117 | 117 | $footer = bouton_action(_T('public:accueil_site'), generer_url_ecrire('accueil')); |
| 118 | - } |
|
| 119 | - elseif (!empty($_COOKIE['spip_admin'])) { |
|
| 118 | + } elseif (!empty($_COOKIE['spip_admin'])) { |
|
| 120 | 119 | $footer = bouton_action(_T('public:lien_connecter'), generer_url_public('login')); |
| 121 | - } |
|
| 122 | - else { |
|
| 120 | + } else { |
|
| 123 | 121 | $footer = bouton_action(_T('public:accueil_site'), $GLOBALS['meta']['adresse_site'] ?? ''); |
| 124 | 122 | } |
| 125 | 123 | |
@@ -131,12 +129,10 @@ discard block |
||
| 131 | 129 | . $titre |
| 132 | 130 | . "</div>"; |
| 133 | 131 | $options['titre'] = ''; |
| 134 | - } |
|
| 135 | - else { |
|
| 132 | + } else { |
|
| 136 | 133 | $options['titre'] = $titre; |
| 137 | 134 | } |
| 138 | - } |
|
| 139 | - else { |
|
| 135 | + } else { |
|
| 140 | 136 | $options['titre'] = $titre; |
| 141 | 137 | } |
| 142 | 138 | $options['page_title'] = $titre; |
@@ -182,8 +182,7 @@ |
||
| 182 | 182 | // sinon on ecrit directement sur stdout |
| 183 | 183 | if ($options['envoyer'] and $options['envoyer'] !== 'attachment') { |
| 184 | 184 | $fichier = 'php://output'; |
| 185 | - } |
|
| 186 | - else { |
|
| 185 | + } else { |
|
| 187 | 186 | $fichier = sous_repertoire(_DIR_CACHE, 'export') . $basename; |
| 188 | 187 | } |
| 189 | 188 | |