Completed
Push — master ( 9bf31e...c5e1f8 )
by cam
01:08
created
ecrire/exec/rechercher.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -68,15 +68,15 @@  discard block
 block discarded – undo
68 68
 	$where = preg_split(',\s+,', $type);
69 69
 	if ($where) {
70 70
 		foreach ($where as $k => $v) {
71
-			$where[$k] = "'%" . substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1) . "%'";
71
+			$where[$k] = "'%".substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1)."%'";
72 72
 		}
73
-		$where_titre = ('(titre LIKE ' . join(' AND titre LIKE ', $where) . ')');
74
-		$where_desc = ('(descriptif LIKE ' . join(' AND descriptif LIKE ', $where) . ')');
75
-		$where_id = ('(id_rubrique = ' . intval($type) . ')');
73
+		$where_titre = ('(titre LIKE '.join(' AND titre LIKE ', $where).')');
74
+		$where_desc = ('(descriptif LIKE '.join(' AND descriptif LIKE ', $where).')');
75
+		$where_id = ('(id_rubrique = '.intval($type).')');
76 76
 
77 77
 		if ($exclus) {
78 78
 			include_spip('inc/rubriques');
79
-			$where_exclus = ' AND ' . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT');
79
+			$where_exclus = ' AND '.sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT');
80 80
 		} else {
81 81
 			$where_exclus = '';
82 82
 		}
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
 	if ($points) {
108 108
 		arsort($points);
109
-		$style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'";
109
+		$style = " style='background-image: url(".chemin_image('secteur-12.png').")'";
110 110
 		foreach ($rub as $k => $v) {
111 111
 			$rub[$k]['atts'] = ($v['id_parent'] ? $style : '')
112 112
 				. " class='petite-rubrique'";
@@ -139,13 +139,13 @@  discard block
 block discarded – undo
139 139
 	if (!$ids) {
140 140
 		return "<br /><br /><div style='padding: 5px; color: red;'><b>"
141 141
 		. spip_htmlentities($type)
142
-		. '</b> :  ' . _T('avis_aucun_resultat') . '</div>';
142
+		. '</b> :  '._T('avis_aucun_resultat').'</div>';
143 143
 	}
144 144
 
145 145
 	$ret = '';
146 146
 	$info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id=");
147 147
 
148
-	$onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)";
148
+	$onClick = "aff_selection(this.firstChild.title,'$rac"."_selection','$info', event)";
149 149
 
150 150
 	$ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');";
151 151
 
Please login to merge, or discard this patch.
Indentation   +100 added lines, -100 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  **/
20 20
 
21 21
 if (!defined('_ECRIRE_INC_VERSION')) {
22
-	return;
22
+    return;
23 23
 }
24 24
 
25 25
 include_spip('inc/actions');
@@ -32,17 +32,17 @@  discard block
 block discarded – undo
32 32
  * @uses ajax_retour()
33 33
  **/
34 34
 function exec_rechercher_dist() {
35
-	$id = intval(_request('id'));
36
-	$exclus = intval(_request('exclus'));
37
-	$rac = spip_htmlentities(_request('rac'));
38
-	$type = _request('type');
39
-	$do = _request('do');
40
-	if (preg_match('/^\w*$/', $do)) {
41
-		$r = exec_rechercher_args($id, $type, $exclus, $rac, $do);
42
-	} else {
43
-		$r = '';
44
-	}
45
-	ajax_retour($r);
35
+    $id = intval(_request('id'));
36
+    $exclus = intval(_request('exclus'));
37
+    $rac = spip_htmlentities(_request('rac'));
38
+    $type = _request('type');
39
+    $do = _request('do');
40
+    if (preg_match('/^\w*$/', $do)) {
41
+        $r = exec_rechercher_args($id, $type, $exclus, $rac, $do);
42
+    } else {
43
+        $r = '';
44
+    }
45
+    ajax_retour($r);
46 46
 }
47 47
 
48 48
 /**
@@ -59,61 +59,61 @@  discard block
 block discarded – undo
59 59
  * @return string
60 60
  **/
61 61
 function exec_rechercher_args($id, $type, $exclus, $rac, $do) {
62
-	if (!$do) {
63
-		$do = 'aff';
64
-	}
65
-
66
-	$points = $rub = [];
67
-
68
-	$where = preg_split(',\s+,', $type);
69
-	if ($where) {
70
-		foreach ($where as $k => $v) {
71
-			$where[$k] = "'%" . substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1) . "%'";
72
-		}
73
-		$where_titre = ('(titre LIKE ' . join(' AND titre LIKE ', $where) . ')');
74
-		$where_desc = ('(descriptif LIKE ' . join(' AND descriptif LIKE ', $where) . ')');
75
-		$where_id = ('(id_rubrique = ' . intval($type) . ')');
76
-
77
-		if ($exclus) {
78
-			include_spip('inc/rubriques');
79
-			$where_exclus = ' AND ' . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT');
80
-		} else {
81
-			$where_exclus = '';
82
-		}
83
-
84
-		foreach (
85
-			[
86
-				3 => $where_titre,
87
-				2 => $where_desc,
88
-				1 => $where_id,
89
-			] as $point => $recherche
90
-		) {
91
-			$res = sql_select('id_rubrique, id_parent, titre', 'spip_rubriques', "$recherche$where_exclus");
92
-			while ($row = sql_fetch($res)) {
93
-				$id_rubrique = $row['id_rubrique'];
94
-				if (!isset($rub[$id_rubrique])) {
95
-					$rub[$id_rubrique] = [];
96
-				}
97
-				$rub[$id_rubrique]['titre'] = typo($row['titre']);
98
-				$rub[$id_rubrique]['id_parent'] = $row['id_parent'];
99
-				if (!isset($points[$id_rubrique])) {
100
-					$points[$id_rubrique] = 0;
101
-				}
102
-				$points[$id_rubrique] = $points[$id_rubrique] + $point;
103
-			}
104
-		}
105
-	}
106
-
107
-	if ($points) {
108
-		arsort($points);
109
-		$style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'";
110
-		foreach ($rub as $k => $v) {
111
-			$rub[$k]['atts'] = ($v['id_parent'] ? $style : '')
112
-				. " class='petite-rubrique'";
113
-		}
114
-	}
115
-
116
-	return (proposer_item($points, $rub, $rac, $type, $do));
62
+    if (!$do) {
63
+        $do = 'aff';
64
+    }
65
+
66
+    $points = $rub = [];
67
+
68
+    $where = preg_split(',\s+,', $type);
69
+    if ($where) {
70
+        foreach ($where as $k => $v) {
71
+            $where[$k] = "'%" . substr(str_replace('%', '\%', sql_quote($v, '', 'string')), 1, -1) . "%'";
72
+        }
73
+        $where_titre = ('(titre LIKE ' . join(' AND titre LIKE ', $where) . ')');
74
+        $where_desc = ('(descriptif LIKE ' . join(' AND descriptif LIKE ', $where) . ')');
75
+        $where_id = ('(id_rubrique = ' . intval($type) . ')');
76
+
77
+        if ($exclus) {
78
+            include_spip('inc/rubriques');
79
+            $where_exclus = ' AND ' . sql_in('id_rubrique', calcul_branche_in($exclus), 'NOT');
80
+        } else {
81
+            $where_exclus = '';
82
+        }
83
+
84
+        foreach (
85
+            [
86
+                3 => $where_titre,
87
+                2 => $where_desc,
88
+                1 => $where_id,
89
+            ] as $point => $recherche
90
+        ) {
91
+            $res = sql_select('id_rubrique, id_parent, titre', 'spip_rubriques', "$recherche$where_exclus");
92
+            while ($row = sql_fetch($res)) {
93
+                $id_rubrique = $row['id_rubrique'];
94
+                if (!isset($rub[$id_rubrique])) {
95
+                    $rub[$id_rubrique] = [];
96
+                }
97
+                $rub[$id_rubrique]['titre'] = typo($row['titre']);
98
+                $rub[$id_rubrique]['id_parent'] = $row['id_parent'];
99
+                if (!isset($points[$id_rubrique])) {
100
+                    $points[$id_rubrique] = 0;
101
+                }
102
+                $points[$id_rubrique] = $points[$id_rubrique] + $point;
103
+            }
104
+        }
105
+    }
106
+
107
+    if ($points) {
108
+        arsort($points);
109
+        $style = " style='background-image: url(" . chemin_image('secteur-12.png') . ")'";
110
+        foreach ($rub as $k => $v) {
111
+            $rub[$k]['atts'] = ($v['id_parent'] ? $style : '')
112
+                . " class='petite-rubrique'";
113
+        }
114
+    }
115
+
116
+    return (proposer_item($points, $rub, $rac, $type, $do));
117 117
 }
118 118
 
119 119
 
@@ -136,37 +136,37 @@  discard block
 block discarded – undo
136 136
  **/
137 137
 function proposer_item($ids, $titles, $rac, $type, $do) {
138 138
 
139
-	if (!$ids) {
140
-		return "<br /><br /><div style='padding: 5px; color: red;'><b>"
141
-		. spip_htmlentities($type)
142
-		. '</b> :  ' . _T('avis_aucun_resultat') . '</div>';
143
-	}
144
-
145
-	$ret = '';
146
-	$info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id=");
147
-
148
-	$onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)";
149
-
150
-	$ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');";
151
-
152
-	foreach ($ids as $id => $bof) {
153
-		$titre = strtr(
154
-			str_replace("'", '&#8217;', str_replace('"', '&#34;', textebrut($titles[$id]['titre']))),
155
-			"\n\r",
156
-			'  '
157
-		);
158
-
159
-		$ret .= "<div class='highlight off'\nonclick=\"changerhighlight(this); "
160
-			. $onClick
161
-			. "\"\nondblclick=\""
162
-			. $ondbClick
163
-			. $onClick
164
-			. ' "><div'
165
-			. $titles[$id]['atts']
166
-			. " title='$id'>&nbsp; "
167
-			. $titre
168
-			. '</div></div>';
169
-	}
170
-
171
-	return $ret;
139
+    if (!$ids) {
140
+        return "<br /><br /><div style='padding: 5px; color: red;'><b>"
141
+        . spip_htmlentities($type)
142
+        . '</b> :  ' . _T('avis_aucun_resultat') . '</div>';
143
+    }
144
+
145
+    $ret = '';
146
+    $info = generer_url_ecrire('informer', "type=rubrique&rac=$rac&id=");
147
+
148
+    $onClick = "aff_selection(this.firstChild.title,'$rac" . "_selection','$info', event)";
149
+
150
+    $ondbClick = "$do(this.firstChild.firstChild.nodeValue,this.firstChild.title,'selection_rubrique', 'id_parent');";
151
+
152
+    foreach ($ids as $id => $bof) {
153
+        $titre = strtr(
154
+            str_replace("'", '&#8217;', str_replace('"', '&#34;', textebrut($titles[$id]['titre']))),
155
+            "\n\r",
156
+            '  '
157
+        );
158
+
159
+        $ret .= "<div class='highlight off'\nonclick=\"changerhighlight(this); "
160
+            . $onClick
161
+            . "\"\nondblclick=\""
162
+            . $ondbClick
163
+            . $onClick
164
+            . ' "><div'
165
+            . $titles[$id]['atts']
166
+            . " title='$id'>&nbsp; "
167
+            . $titre
168
+            . '</div></div>';
169
+    }
170
+
171
+    return $ret;
172 172
 }
Please login to merge, or discard this patch.
ecrire/exec/upgrade.php 2 patches
Indentation   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  */
18 18
 
19 19
 if (!defined('_ECRIRE_INC_VERSION')) {
20
-	return;
20
+    return;
21 21
 }
22 22
 
23 23
 include_spip('inc/actions');
@@ -30,70 +30,70 @@  discard block
 block discarded – undo
30 30
  **/
31 31
 function exec_upgrade_dist() {
32 32
 
33
-	if (!_FILE_CONNECT) {
34
-		redirige_url_ecrire('install');
35
-	}
33
+    if (!_FILE_CONNECT) {
34
+        redirige_url_ecrire('install');
35
+    }
36 36
 
37
-	// Si reinstallation necessaire, message ad hoc
38
-	if (_request('reinstall') == 'oui') {
39
-		include_spip('inc/minipres');
40
-		$r = minipres(
41
-			_T('titre_page_upgrade'),
42
-			'<p><b>'
43
-			. _T('texte_nouvelle_version_spip_1')
44
-			. '</b><p> '
45
-			. _T(
46
-				'texte_nouvelle_version_spip_2',
47
-				['connect' => '<tt>' . _FILE_CONNECT . '</tt>']
48
-			)
49
-			. generer_form_ecrire(
50
-				'upgrade',
51
-				"<input type='hidden' name='reinstall' value='non' />",
52
-				'',
53
-				_T('bouton_relancer_installation')
54
-			)
55
-		);
56
-		echo $r;
57
-	} elseif (_request('fin')) {
58
-		include_spip('inc/plugin');
59
-		actualise_plugins_actifs();
60
-		include_spip('inc/headers');
61
-		$res = generer_url_ecrire('admin_plugin', 'var_mode=recalcul');
62
-		echo redirige_formulaire($res);
63
-	} else {
64
-		if (!isset($GLOBALS['meta']['version_installee'])) {
65
-			$GLOBALS['meta']['version_installee'] = 0.0;
66
-		} else {
67
-			$GLOBALS['meta']['version_installee'] =
68
-				(double)str_replace(',', '.', $GLOBALS['meta']['version_installee']);
69
-		}
70
-		# NB: str_replace car, sur club-internet, il semble que version_installe soit
71
-		# enregistree au format '1,812' et non '1.812'
37
+    // Si reinstallation necessaire, message ad hoc
38
+    if (_request('reinstall') == 'oui') {
39
+        include_spip('inc/minipres');
40
+        $r = minipres(
41
+            _T('titre_page_upgrade'),
42
+            '<p><b>'
43
+            . _T('texte_nouvelle_version_spip_1')
44
+            . '</b><p> '
45
+            . _T(
46
+                'texte_nouvelle_version_spip_2',
47
+                ['connect' => '<tt>' . _FILE_CONNECT . '</tt>']
48
+            )
49
+            . generer_form_ecrire(
50
+                'upgrade',
51
+                "<input type='hidden' name='reinstall' value='non' />",
52
+                '',
53
+                _T('bouton_relancer_installation')
54
+            )
55
+        );
56
+        echo $r;
57
+    } elseif (_request('fin')) {
58
+        include_spip('inc/plugin');
59
+        actualise_plugins_actifs();
60
+        include_spip('inc/headers');
61
+        $res = generer_url_ecrire('admin_plugin', 'var_mode=recalcul');
62
+        echo redirige_formulaire($res);
63
+    } else {
64
+        if (!isset($GLOBALS['meta']['version_installee'])) {
65
+            $GLOBALS['meta']['version_installee'] = 0.0;
66
+        } else {
67
+            $GLOBALS['meta']['version_installee'] =
68
+                (double)str_replace(',', '.', $GLOBALS['meta']['version_installee']);
69
+        }
70
+        # NB: str_replace car, sur club-internet, il semble que version_installe soit
71
+        # enregistree au format '1,812' et non '1.812'
72 72
 
73
-		// Erreur downgrade
74
-		// (cas de double installation de fichiers SPIP sur une meme base)
75
-		if ($GLOBALS['spip_version_base'] < $GLOBALS['meta']['version_installee']) {
76
-			$commentaire = _T('info_mise_a_niveau_base_2');
77
-		} // Commentaire standard upgrade
78
-		else {
79
-			$commentaire = _T('texte_mise_a_niveau_base_1');
80
-		}
73
+        // Erreur downgrade
74
+        // (cas de double installation de fichiers SPIP sur une meme base)
75
+        if ($GLOBALS['spip_version_base'] < $GLOBALS['meta']['version_installee']) {
76
+            $commentaire = _T('info_mise_a_niveau_base_2');
77
+        } // Commentaire standard upgrade
78
+        else {
79
+            $commentaire = _T('texte_mise_a_niveau_base_1');
80
+        }
81 81
 
82
-		$commentaire .= '<br />[' . $GLOBALS['meta']['version_installee'] . '/' . $GLOBALS['spip_version_base'] . ']';
82
+        $commentaire .= '<br />[' . $GLOBALS['meta']['version_installee'] . '/' . $GLOBALS['spip_version_base'] . ']';
83 83
 
84
-		$_POST['reinstall'] = 'non'; // pour copy_request dans admin
85
-		include_spip('inc/headers');
86
-		$admin = charger_fonction('admin', 'inc');
87
-		$res = $admin('upgrade', _T('info_mise_a_niveau_base'), $commentaire);
88
-		if ($res) {
89
-			echo $res;
90
-		} else {
91
-			// effacer les alea pour forcer leur relecture
92
-			// si jamais ils ont change pendant l'upgrade
93
-			unset($GLOBALS['meta']['alea_ephemere']);
94
-			unset($GLOBALS['meta']['alea_ephemere_ancien']);
95
-			$res = redirige_action_auteur('purger', 'cache', 'upgrade', 'fin=oui', true);
96
-			echo redirige_formulaire($res);
97
-		}
98
-	}
84
+        $_POST['reinstall'] = 'non'; // pour copy_request dans admin
85
+        include_spip('inc/headers');
86
+        $admin = charger_fonction('admin', 'inc');
87
+        $res = $admin('upgrade', _T('info_mise_a_niveau_base'), $commentaire);
88
+        if ($res) {
89
+            echo $res;
90
+        } else {
91
+            // effacer les alea pour forcer leur relecture
92
+            // si jamais ils ont change pendant l'upgrade
93
+            unset($GLOBALS['meta']['alea_ephemere']);
94
+            unset($GLOBALS['meta']['alea_ephemere_ancien']);
95
+            $res = redirige_action_auteur('purger', 'cache', 'upgrade', 'fin=oui', true);
96
+            echo redirige_formulaire($res);
97
+        }
98
+    }
99 99
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 			. '</b><p> '
45 45
 			. _T(
46 46
 				'texte_nouvelle_version_spip_2',
47
-				['connect' => '<tt>' . _FILE_CONNECT . '</tt>']
47
+				['connect' => '<tt>'._FILE_CONNECT.'</tt>']
48 48
 			)
49 49
 			. generer_form_ecrire(
50 50
 				'upgrade',
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 			$GLOBALS['meta']['version_installee'] = 0.0;
66 66
 		} else {
67 67
 			$GLOBALS['meta']['version_installee'] =
68
-				(double)str_replace(',', '.', $GLOBALS['meta']['version_installee']);
68
+				(double) str_replace(',', '.', $GLOBALS['meta']['version_installee']);
69 69
 		}
70 70
 		# NB: str_replace car, sur club-internet, il semble que version_installe soit
71 71
 		# enregistree au format '1,812' et non '1.812'
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 			$commentaire = _T('texte_mise_a_niveau_base_1');
80 80
 		}
81 81
 
82
-		$commentaire .= '<br />[' . $GLOBALS['meta']['version_installee'] . '/' . $GLOBALS['spip_version_base'] . ']';
82
+		$commentaire .= '<br />['.$GLOBALS['meta']['version_installee'].'/'.$GLOBALS['spip_version_base'].']';
83 83
 
84 84
 		$_POST['reinstall'] = 'non'; // pour copy_request dans admin
85 85
 		include_spip('inc/headers');
Please login to merge, or discard this patch.
ecrire/exec/selectionner.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @package SPIP\Core\Rubriques
17 17
  **/
18 18
 if (!defined('_ECRIRE_INC_VERSION')) {
19
-	return;
19
+    return;
20 20
 }
21 21
 
22 22
 include_spip('inc/actions');
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
  * @uses ajax_retour()
29 29
  **/
30 30
 function exec_selectionner_dist() {
31
-	$id = intval(_request('id'));
32
-	$exclus = intval(_request('exclus'));
33
-	$type = _request('type');
34
-	$rac = _request('racine');
35
-	$do = _request('do');
36
-	if (preg_match('/^\w*$/', $do)) {
37
-		if (!$do) {
38
-			$do = 'aff';
39
-		}
31
+    $id = intval(_request('id'));
32
+    $exclus = intval(_request('exclus'));
33
+    $type = _request('type');
34
+    $rac = _request('racine');
35
+    $do = _request('do');
36
+    if (preg_match('/^\w*$/', $do)) {
37
+        if (!$do) {
38
+            $do = 'aff';
39
+        }
40 40
 
41
-		$selectionner = charger_fonction('selectionner', 'inc');
41
+        $selectionner = charger_fonction('selectionner', 'inc');
42 42
 
43
-		$r = $selectionner($id, 'choix_parent', $exclus, $rac, $type != 'breve', $do);
44
-	} else {
45
-		$r = '';
46
-	}
47
-	ajax_retour($r);
43
+        $r = $selectionner($id, 'choix_parent', $exclus, $rac, $type != 'breve', $do);
44
+    } else {
45
+        $r = '';
46
+    }
47
+    ajax_retour($r);
48 48
 }
Please login to merge, or discard this patch.
ecrire/exec/base_delete_all.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -17,40 +17,40 @@
 block discarded – undo
17 17
  */
18 18
 
19 19
 if (!defined('_ECRIRE_INC_VERSION')) {
20
-	return;
20
+    return;
21 21
 }
22 22
 
23 23
 /**
24 24
  * Exec de la page de destruction des tables de SPIP
25 25
  **/
26 26
 function exec_base_delete_all_dist() {
27
-	include_spip('inc/autoriser');
28
-	if (!autoriser('detruire')) {
29
-		include_spip('inc/minipres');
30
-		echo minipres();
31
-	} else {
32
-		include_spip('base/dump');
33
-		$res = base_lister_toutes_tables('', [], [], true);
34
-		if (!$res) {
35
-			include_spip('inc/minipres');
36
-			spip_log('Erreur base de donnees');
37
-			echo minipres(
38
-				_T('info_travaux_titre'),
39
-				_T('titre_probleme_technique') . '<p><tt>' . sql_errno() . ' ' . sql_error() . '</tt></p>'
40
-			);
41
-		} else {
42
-			$res = base_saisie_tables('delete', $res);
43
-			include_spip('inc/headers');
44
-			$res = "\n<ol style='text-align:left'><li>\n" .
45
-				join("</li>\n<li>", $res) .
46
-				'</li></ol>';
47
-			$admin = charger_fonction('admin', 'inc');
48
-			$res = $admin('delete_all', _T('titre_page_delete_all'), $res);
49
-			if (!$res) {
50
-				redirige_url_ecrire('install', '');
51
-			} else {
52
-				echo $res;
53
-			}
54
-		}
55
-	}
27
+    include_spip('inc/autoriser');
28
+    if (!autoriser('detruire')) {
29
+        include_spip('inc/minipres');
30
+        echo minipres();
31
+    } else {
32
+        include_spip('base/dump');
33
+        $res = base_lister_toutes_tables('', [], [], true);
34
+        if (!$res) {
35
+            include_spip('inc/minipres');
36
+            spip_log('Erreur base de donnees');
37
+            echo minipres(
38
+                _T('info_travaux_titre'),
39
+                _T('titre_probleme_technique') . '<p><tt>' . sql_errno() . ' ' . sql_error() . '</tt></p>'
40
+            );
41
+        } else {
42
+            $res = base_saisie_tables('delete', $res);
43
+            include_spip('inc/headers');
44
+            $res = "\n<ol style='text-align:left'><li>\n" .
45
+                join("</li>\n<li>", $res) .
46
+                '</li></ol>';
47
+            $admin = charger_fonction('admin', 'inc');
48
+            $res = $admin('delete_all', _T('titre_page_delete_all'), $res);
49
+            if (!$res) {
50
+                redirige_url_ecrire('install', '');
51
+            } else {
52
+                echo $res;
53
+            }
54
+        }
55
+    }
56 56
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@
 block discarded – undo
36 36
 			spip_log('Erreur base de donnees');
37 37
 			echo minipres(
38 38
 				_T('info_travaux_titre'),
39
-				_T('titre_probleme_technique') . '<p><tt>' . sql_errno() . ' ' . sql_error() . '</tt></p>'
39
+				_T('titre_probleme_technique').'<p><tt>'.sql_errno().' '.sql_error().'</tt></p>'
40 40
 			);
41 41
 		} else {
42 42
 			$res = base_saisie_tables('delete', $res);
43 43
 			include_spip('inc/headers');
44
-			$res = "\n<ol style='text-align:left'><li>\n" .
45
-				join("</li>\n<li>", $res) .
44
+			$res = "\n<ol style='text-align:left'><li>\n".
45
+				join("</li>\n<li>", $res).
46 46
 				'</li></ol>';
47 47
 			$admin = charger_fonction('admin', 'inc');
48 48
 			$res = $admin('delete_all', _T('titre_page_delete_all'), $res);
Please login to merge, or discard this patch.
ecrire/exec/fond.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  */
22 22
 
23 23
 if (!defined('_ECRIRE_INC_VERSION')) {
24
-	return;
24
+    return;
25 25
 }
26 26
 
27 27
 
@@ -29,16 +29,16 @@  discard block
 block discarded – undo
29 29
 $GLOBALS['delais'] = 0;// pas de cache !
30 30
 // Securite
31 31
 if (strstr($fond, '/')) {
32
-	if (
33
-		!include_spip('inc/autoriser')
34
-		or !autoriser('webmestre')
35
-	) {
36
-		include_spip('inc/minipres');
37
-		echo minipres();
38
-		exit;
39
-	}
32
+    if (
33
+        !include_spip('inc/autoriser')
34
+        or !autoriser('webmestre')
35
+    ) {
36
+        include_spip('inc/minipres');
37
+        echo minipres();
38
+        exit;
39
+    }
40 40
 } else {
41
-	$fond = "prive/squelettes/$fond";
41
+    $fond = "prive/squelettes/$fond";
42 42
 }
43 43
 
44 44
 // quelques inclusions et ini prealables
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
  * @todo supprimer cette fonction vide ?
51 51
  **/
52 52
 function shutdown_error() {
53
-	// si on arrive ici avec un tampon non ferme : erreur fatale
54
-	/*	if (ob_get_level()){
53
+    // si on arrive ici avec un tampon non ferme : erreur fatale
54
+    /*	if (ob_get_level()){
55 55
 			// envoyer tous les tampons
56 56
 			while (ob_get_level())
57 57
 				ob_end_flush();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
 
28 28
 $fond = _request('exec');
29
-$GLOBALS['delais'] = 0;// pas de cache !
29
+$GLOBALS['delais'] = 0; // pas de cache !
30 30
 // Securite
31 31
 if (strstr($fond, '/')) {
32 32
 	if (
Please login to merge, or discard this patch.
ecrire/action/activer_plugins.php 2 patches
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  **/
18 18
 
19 19
 if (!defined('_ECRIRE_INC_VERSION')) {
20
-	return;
20
+    return;
21 21
 }
22 22
 
23 23
 /**
@@ -28,49 +28,49 @@  discard block
 block discarded – undo
28 28
  * @return void
29 29
  */
30 30
 function enregistre_modif_plugin() {
31
-	include_spip('inc/plugin');
32
-	// recuperer les plugins dans l'ordre des $_POST
33
-	$test = [];
34
-	foreach (liste_plugin_files() as $file) {
35
-		$test['s' . substr(md5(_DIR_PLUGINS . $file), 0, 16)] = $file;
36
-	}
37
-	if (defined('_DIR_PLUGINS_SUPPL')) {
38
-		foreach (liste_plugin_files(_DIR_PLUGINS_SUPPL) as $file) {
39
-			$test['s' . substr(md5(_DIR_PLUGINS_SUPPL . $file), 0, 16)] = $file;
40
-		}
41
-	}
31
+    include_spip('inc/plugin');
32
+    // recuperer les plugins dans l'ordre des $_POST
33
+    $test = [];
34
+    foreach (liste_plugin_files() as $file) {
35
+        $test['s' . substr(md5(_DIR_PLUGINS . $file), 0, 16)] = $file;
36
+    }
37
+    if (defined('_DIR_PLUGINS_SUPPL')) {
38
+        foreach (liste_plugin_files(_DIR_PLUGINS_SUPPL) as $file) {
39
+            $test['s' . substr(md5(_DIR_PLUGINS_SUPPL . $file), 0, 16)] = $file;
40
+        }
41
+    }
42 42
 
43
-	$plugin = [];
43
+    $plugin = [];
44 44
 
45
-	foreach ($_POST as $choix => $val) {
46
-		if (isset($test[$choix]) && $val == 'O') {
47
-			$plugin[] = $test[$choix];
48
-		}
49
-	}
45
+    foreach ($_POST as $choix => $val) {
46
+        if (isset($test[$choix]) && $val == 'O') {
47
+            $plugin[] = $test[$choix];
48
+        }
49
+    }
50 50
 
51
-	spip_log("Changement des plugins actifs par l'auteur " . $GLOBALS['visiteur_session']['id_auteur'] . ': ' . join(
52
-		',',
53
-		$plugin
54
-	));
55
-	ecrire_plugin_actifs($plugin);
51
+    spip_log("Changement des plugins actifs par l'auteur " . $GLOBALS['visiteur_session']['id_auteur'] . ': ' . join(
52
+        ',',
53
+        $plugin
54
+    ));
55
+    ecrire_plugin_actifs($plugin);
56 56
 
57
-	// Chaque fois que l'on valide des plugins, on memorise la liste de ces plugins comme etant "interessants", avec un score initial, qui sera decremente a chaque tour : ainsi un plugin active pourra reter visible a l'ecran, jusqu'a ce qu'il tombe dans l'oubli.
58
-	$plugins_interessants = @unserialize($GLOBALS['meta']['plugins_interessants']);
59
-	if (!is_array($plugins_interessants)) {
60
-		$plugins_interessants = [];
61
-	}
57
+    // Chaque fois que l'on valide des plugins, on memorise la liste de ces plugins comme etant "interessants", avec un score initial, qui sera decremente a chaque tour : ainsi un plugin active pourra reter visible a l'ecran, jusqu'a ce qu'il tombe dans l'oubli.
58
+    $plugins_interessants = @unserialize($GLOBALS['meta']['plugins_interessants']);
59
+    if (!is_array($plugins_interessants)) {
60
+        $plugins_interessants = [];
61
+    }
62 62
 
63
-	$plugins_interessants2 = [];
63
+    $plugins_interessants2 = [];
64 64
 
65
-	foreach ($plugins_interessants as $plug => $score) {
66
-		if ($score > 1) {
67
-			$plugins_interessants2[$plug] = $score - 1;
68
-		}
69
-	}
70
-	foreach ($plugin as $plug) {
71
-		$plugins_interessants2[$plug] = 10;
72
-	} // score initial
73
-	ecrire_meta('plugins_interessants', serialize($plugins_interessants2));
65
+    foreach ($plugins_interessants as $plug => $score) {
66
+        if ($score > 1) {
67
+            $plugins_interessants2[$plug] = $score - 1;
68
+        }
69
+    }
70
+    foreach ($plugin as $plug) {
71
+        $plugins_interessants2[$plug] = 10;
72
+    } // score initial
73
+    ecrire_meta('plugins_interessants', serialize($plugins_interessants2));
74 74
 }
75 75
 
76 76
 /**
@@ -82,13 +82,13 @@  discard block
 block discarded – undo
82 82
  */
83 83
 function action_activer_plugins_dist() {
84 84
 
85
-	$securiser_action = charger_fonction('securiser_action', 'inc');
86
-	$securiser_action();
85
+    $securiser_action = charger_fonction('securiser_action', 'inc');
86
+    $securiser_action();
87 87
 
88
-	if (!autoriser('configurer', '_plugins')) {
89
-		die('erreur');
90
-	}
91
-	// forcer la maj des meta pour les cas de modif de numero de version base via phpmyadmin
92
-	lire_metas();
93
-	enregistre_modif_plugin();
88
+    if (!autoriser('configurer', '_plugins')) {
89
+        die('erreur');
90
+    }
91
+    // forcer la maj des meta pour les cas de modif de numero de version base via phpmyadmin
92
+    lire_metas();
93
+    enregistre_modif_plugin();
94 94
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
 	// recuperer les plugins dans l'ordre des $_POST
33 33
 	$test = [];
34 34
 	foreach (liste_plugin_files() as $file) {
35
-		$test['s' . substr(md5(_DIR_PLUGINS . $file), 0, 16)] = $file;
35
+		$test['s'.substr(md5(_DIR_PLUGINS.$file), 0, 16)] = $file;
36 36
 	}
37 37
 	if (defined('_DIR_PLUGINS_SUPPL')) {
38 38
 		foreach (liste_plugin_files(_DIR_PLUGINS_SUPPL) as $file) {
39
-			$test['s' . substr(md5(_DIR_PLUGINS_SUPPL . $file), 0, 16)] = $file;
39
+			$test['s'.substr(md5(_DIR_PLUGINS_SUPPL.$file), 0, 16)] = $file;
40 40
 		}
41 41
 	}
42 42
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 		}
49 49
 	}
50 50
 
51
-	spip_log("Changement des plugins actifs par l'auteur " . $GLOBALS['visiteur_session']['id_auteur'] . ': ' . join(
51
+	spip_log("Changement des plugins actifs par l'auteur ".$GLOBALS['visiteur_session']['id_auteur'].': '.join(
52 52
 		',',
53 53
 		$plugin
54 54
 	));
Please login to merge, or discard this patch.
ecrire/action/calculer_taille_cache.php 2 patches
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @package SPIP\Core\Cache
17 17
  **/
18 18
 if (!defined('_ECRIRE_INC_VERSION')) {
19
-	return;
19
+    return;
20 20
 }
21 21
 
22 22
 
@@ -31,41 +31,41 @@  discard block
 block discarded – undo
31 31
  *     de l'action sécurisée.
32 32
  */
33 33
 function action_calculer_taille_cache_dist($arg = null) {
34
-	if (is_null($arg)) {
35
-		$securiser_action = charger_fonction('securiser_action', 'inc');
36
-		$arg = $securiser_action();
37
-	}
38
-	include_spip('inc/filtres');
34
+    if (is_null($arg)) {
35
+        $securiser_action = charger_fonction('securiser_action', 'inc');
36
+        $arg = $securiser_action();
37
+    }
38
+    include_spip('inc/filtres');
39 39
 
40
-	if ($arg == 'images') {
41
-		$taille = calculer_taille_dossier(_DIR_VAR);
42
-		$res = _T(
43
-			'ecrire:taille_cache_image',
44
-			[
45
-				'dir' => joli_repertoire(_DIR_VAR),
46
-				'taille' => '<b>' . (taille_en_octets($taille) > 0 ? taille_en_octets($taille) : '0 octet') . '</b>'
47
-			]
48
-		);
49
-	} else {
50
-		include_spip('inc/invalideur');
51
-		$taille =
52
-			calculer_taille_dossier(_DIR_CACHE_XML)
53
-			+ calculer_taille_dossier(_DIR_CACHE . 'skel/')
54
-			+ calculer_taille_dossier(_DIR_CACHE . 'wheels/')
55
-			+ calculer_taille_dossier(_DIR_CACHE . 'contextes/');
56
-		$taille += intval(taille_du_cache());
57
-		if ($taille <= 150000) {
58
-			$res = _T('taille_cache_vide');
59
-		} elseif ($taille <= 1024 * 1024) {
60
-			$res = _T('taille_cache_moins_de', ['octets' => taille_en_octets(1024 * 1024)]);
61
-		} else {
62
-			$res = _T('taille_cache_octets', ['octets' => taille_en_octets($taille)]);
63
-		}
64
-		$res = "<b>$res</b>";
65
-	}
40
+    if ($arg == 'images') {
41
+        $taille = calculer_taille_dossier(_DIR_VAR);
42
+        $res = _T(
43
+            'ecrire:taille_cache_image',
44
+            [
45
+                'dir' => joli_repertoire(_DIR_VAR),
46
+                'taille' => '<b>' . (taille_en_octets($taille) > 0 ? taille_en_octets($taille) : '0 octet') . '</b>'
47
+            ]
48
+        );
49
+    } else {
50
+        include_spip('inc/invalideur');
51
+        $taille =
52
+            calculer_taille_dossier(_DIR_CACHE_XML)
53
+            + calculer_taille_dossier(_DIR_CACHE . 'skel/')
54
+            + calculer_taille_dossier(_DIR_CACHE . 'wheels/')
55
+            + calculer_taille_dossier(_DIR_CACHE . 'contextes/');
56
+        $taille += intval(taille_du_cache());
57
+        if ($taille <= 150000) {
58
+            $res = _T('taille_cache_vide');
59
+        } elseif ($taille <= 1024 * 1024) {
60
+            $res = _T('taille_cache_moins_de', ['octets' => taille_en_octets(1024 * 1024)]);
61
+        } else {
62
+            $res = _T('taille_cache_octets', ['octets' => taille_en_octets($taille)]);
63
+        }
64
+        $res = "<b>$res</b>";
65
+    }
66 66
 
67
-	$res = "<p>$res</p>";
68
-	ajax_retour($res);
67
+    $res = "<p>$res</p>";
68
+    ajax_retour($res);
69 69
 }
70 70
 
71 71
 
@@ -76,28 +76,28 @@  discard block
 block discarded – undo
76 76
  * @return int Taille en octets
77 77
  */
78 78
 function calculer_taille_dossier($dir) {
79
-	if (!is_dir($dir) or !is_readable($dir)) {
80
-		return 0;
81
-	}
82
-	$handle = opendir($dir);
83
-	if (!$handle) {
84
-		return 0;
85
-	}
86
-	$taille = 0;
87
-	while (($fichier = @readdir($handle)) !== false) {
88
-		// Eviter ".", "..", ".htaccess", etc.
89
-		if ($fichier[0] == '.') {
90
-			continue;
91
-		}
92
-		if (is_file($d = "$dir/$fichier")) {
93
-			$taille += filesize($d);
94
-		} else {
95
-			if (is_dir($d)) {
96
-				$taille += calculer_taille_dossier($d);
97
-			}
98
-		}
99
-	}
100
-	closedir($handle);
79
+    if (!is_dir($dir) or !is_readable($dir)) {
80
+        return 0;
81
+    }
82
+    $handle = opendir($dir);
83
+    if (!$handle) {
84
+        return 0;
85
+    }
86
+    $taille = 0;
87
+    while (($fichier = @readdir($handle)) !== false) {
88
+        // Eviter ".", "..", ".htaccess", etc.
89
+        if ($fichier[0] == '.') {
90
+            continue;
91
+        }
92
+        if (is_file($d = "$dir/$fichier")) {
93
+            $taille += filesize($d);
94
+        } else {
95
+            if (is_dir($d)) {
96
+                $taille += calculer_taille_dossier($d);
97
+            }
98
+        }
99
+    }
100
+    closedir($handle);
101 101
 
102
-	return $taille;
102
+    return $taille;
103 103
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,16 +43,16 @@
 block discarded – undo
43 43
 			'ecrire:taille_cache_image',
44 44
 			[
45 45
 				'dir' => joli_repertoire(_DIR_VAR),
46
-				'taille' => '<b>' . (taille_en_octets($taille) > 0 ? taille_en_octets($taille) : '0 octet') . '</b>'
46
+				'taille' => '<b>'.(taille_en_octets($taille) > 0 ? taille_en_octets($taille) : '0 octet').'</b>'
47 47
 			]
48 48
 		);
49 49
 	} else {
50 50
 		include_spip('inc/invalideur');
51 51
 		$taille =
52 52
 			calculer_taille_dossier(_DIR_CACHE_XML)
53
-			+ calculer_taille_dossier(_DIR_CACHE . 'skel/')
54
-			+ calculer_taille_dossier(_DIR_CACHE . 'wheels/')
55
-			+ calculer_taille_dossier(_DIR_CACHE . 'contextes/');
53
+			+ calculer_taille_dossier(_DIR_CACHE.'skel/')
54
+			+ calculer_taille_dossier(_DIR_CACHE.'wheels/')
55
+			+ calculer_taille_dossier(_DIR_CACHE.'contextes/');
56 56
 		$taille += intval(taille_du_cache());
57 57
 		if ($taille <= 150000) {
58 58
 			$res = _T('taille_cache_vide');
Please login to merge, or discard this patch.
ecrire/action/converser.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 		action_converser_post($lang);
61 61
 	} elseif ($lang = _request('var_lang_ecrire')) {
62 62
 		if ($update_session) {
63
-			sql_updateq('spip_auteurs', ['lang' => $lang], 'id_auteur = ' . $GLOBALS['visiteur_session']['id_auteur']);
63
+			sql_updateq('spip_auteurs', ['lang' => $lang], 'id_auteur = '.$GLOBALS['visiteur_session']['id_auteur']);
64 64
 			$GLOBALS['visiteur_session']['lang'] = $lang;
65 65
 			$session = charger_fonction('session', 'inc');
66 66
 			if ($spip_session = $session($GLOBALS['visiteur_session'])) {
Please login to merge, or discard this patch.
Indentation   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @package SPIP\Core\Langue
17 17
  **/
18 18
 if (!defined('_ECRIRE_INC_VERSION')) {
19
-	return;
19
+    return;
20 20
 }
21 21
 
22 22
 include_spip('inc/cookie');
@@ -30,21 +30,21 @@  discard block
 block discarded – undo
30 30
  * @return void
31 31
  */
32 32
 function action_converser_dist() {
33
-	$update_session = false;
34
-	if (_request('arg') and spip_connect()) {
35
-		$securiser_action = charger_fonction('securiser_action', 'inc');
36
-		$securiser_action();
37
-		$update_session = true;
38
-	}
33
+    $update_session = false;
34
+    if (_request('arg') and spip_connect()) {
35
+        $securiser_action = charger_fonction('securiser_action', 'inc');
36
+        $securiser_action();
37
+        $update_session = true;
38
+    }
39 39
 
40
-	$lang = action_converser_changer_langue($update_session);
41
-	$redirect = rawurldecode(_request('redirect'));
40
+    $lang = action_converser_changer_langue($update_session);
41
+    $redirect = rawurldecode(_request('redirect'));
42 42
 
43
-	if (!$redirect) {
44
-		$redirect = _DIR_RESTREINT_ABS;
45
-	}
46
-	$redirect = parametre_url($redirect, 'lang', $lang, '&');
47
-	redirige_par_entete($redirect, true);
43
+    if (!$redirect) {
44
+        $redirect = _DIR_RESTREINT_ABS;
45
+    }
46
+    $redirect = parametre_url($redirect, 'lang', $lang, '&');
47
+    redirige_par_entete($redirect, true);
48 48
 }
49 49
 
50 50
 /**
@@ -56,23 +56,23 @@  discard block
 block discarded – undo
56 56
  * @return string
57 57
  */
58 58
 function action_converser_changer_langue($update_session) {
59
-	if ($lang = _request('var_lang')) {
60
-		action_converser_post($lang);
61
-	} elseif ($lang = _request('var_lang_ecrire')) {
62
-		if ($update_session) {
63
-			sql_updateq('spip_auteurs', ['lang' => $lang], 'id_auteur = ' . $GLOBALS['visiteur_session']['id_auteur']);
64
-			$GLOBALS['visiteur_session']['lang'] = $lang;
65
-			$session = charger_fonction('session', 'inc');
66
-			if ($spip_session = $session($GLOBALS['visiteur_session'])) {
67
-				spip_setcookie('spip_session', $spip_session, [
68
-					'expires' => time() + 3600 * 24 * 14
69
-				]);
70
-			}
71
-		}
72
-		action_converser_post($lang, true);
73
-	}
59
+    if ($lang = _request('var_lang')) {
60
+        action_converser_post($lang);
61
+    } elseif ($lang = _request('var_lang_ecrire')) {
62
+        if ($update_session) {
63
+            sql_updateq('spip_auteurs', ['lang' => $lang], 'id_auteur = ' . $GLOBALS['visiteur_session']['id_auteur']);
64
+            $GLOBALS['visiteur_session']['lang'] = $lang;
65
+            $session = charger_fonction('session', 'inc');
66
+            if ($spip_session = $session($GLOBALS['visiteur_session'])) {
67
+                spip_setcookie('spip_session', $spip_session, [
68
+                    'expires' => time() + 3600 * 24 * 14
69
+                ]);
70
+            }
71
+        }
72
+        action_converser_post($lang, true);
73
+    }
74 74
 
75
-	return $lang;
75
+    return $lang;
76 76
 }
77 77
 
78 78
 /**
@@ -83,17 +83,17 @@  discard block
 block discarded – undo
83 83
  * @return void
84 84
  */
85 85
 function action_converser_post($lang, $ecrire = false) {
86
-	if ($lang) {
87
-		include_spip('inc/lang');
88
-		if (changer_langue($lang)) {
89
-			spip_setcookie('spip_lang', $_COOKIE['spip_lang'] = $lang, [
90
-				'expires' => time() + 365 * 24 * 3600
91
-			]);
92
-			if ($ecrire) {
93
-				spip_setcookie('spip_lang_ecrire', $_COOKIE['spip_lang_ecrire'] = $lang, [
94
-					'expires' => time() + 365 * 24 * 3600
95
-				]);
96
-			}
97
-		}
98
-	}
86
+    if ($lang) {
87
+        include_spip('inc/lang');
88
+        if (changer_langue($lang)) {
89
+            spip_setcookie('spip_lang', $_COOKIE['spip_lang'] = $lang, [
90
+                'expires' => time() + 365 * 24 * 3600
91
+            ]);
92
+            if ($ecrire) {
93
+                spip_setcookie('spip_lang_ecrire', $_COOKIE['spip_lang_ecrire'] = $lang, [
94
+                    'expires' => time() + 365 * 24 * 3600
95
+                ]);
96
+            }
97
+        }
98
+    }
99 99
 }
Please login to merge, or discard this patch.
ecrire/action/annuler_job.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  **/
18 18
 
19 19
 if (!defined('_ECRIRE_INC_VERSION')) {
20
-	return;
20
+    return;
21 21
 }
22 22
 
23 23
 /**
@@ -26,13 +26,13 @@  discard block
 block discarded – undo
26 26
  * @return void
27 27
  */
28 28
 function action_annuler_job_dist() {
29
-	$securiser_action = charger_fonction('securiser_action', 'inc');
30
-	$id_job = $securiser_action();
29
+    $securiser_action = charger_fonction('securiser_action', 'inc');
30
+    $id_job = $securiser_action();
31 31
 
32
-	if (
33
-		$id_job = intval($id_job)
34
-		and autoriser('annuler', 'job', $id_job)
35
-	) {
36
-		job_queue_remove($id_job);
37
-	}
32
+    if (
33
+        $id_job = intval($id_job)
34
+        and autoriser('annuler', 'job', $id_job)
35
+    ) {
36
+        job_queue_remove($id_job);
37
+    }
38 38
 }
Please login to merge, or discard this patch.