Passed
Push — master ( 686cdd...e901da )
by Anthony
03:41
created
admin/views/gestion-contenus/inline.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 <button id="supprimer-page-contenu" type="button" class="submit-contenu supprimer-page supprimer open-popup" popup="supprimer-page" href="<?=ADMWEBROOT?>gestion-contenus/modifier-contenu?id=<?=$id_page_courante?>"><i class="fa fa-times"></i>Annuler</button>
20 20
 
21 21
 
22
-<?php if ($config->getResponsive() == 1){?>
22
+<?php if ($config->getResponsive() == 1) {?>
23 23
 	<link rel="stylesheet" type="text/css" href="<?=WEBROOT?>admin/views/template/css/foundation-inline.css">
24 24
 <?php }?>
25 25
 <link rel="stylesheet" type="text/css" href="<?=TPLWEBROOT?>css/page.css">
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
 <script>
36 36
 	CKEDITOR.disableAutoInline = true;
37 37
 
38
-	<?php for($i=0 ; $i<$bloc_editable ; $i++):?>
38
+	<?php for ($i = 0; $i < $bloc_editable; $i++):?>
39 39
 		var editor<?=$i?> = CKEDITOR.inline("editor<?=$i?>", { customConfig: "<?=WEBROOT?>config/config_ckeditor.js" });
40 40
 		CKFinder.setupCKEditor( editor<?=$i?>, "<?=LIBSWEBROOT?>ckfinder/" );
41
-	<?php endfor;?>
41
+	<?php endfor; ?>
42 42
 </script>
43
-<?php require_once(ROOT."admin/views/gestion-contenus/js/inline.php");?>
44 43
\ No newline at end of file
44
+<?php require_once(ROOT."admin/views/gestion-contenus/js/inline.php"); ?>
45 45
\ No newline at end of file
Please login to merge, or discard this patch.
core/admin/contenus/gestion/modifier_contenus.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
 			$meta_description = $_POST['meta_description'];
11 11
 			$titre_page = $_POST['titre_page'];
12 12
 			$parent = $_POST['parent_texte'];
13
-		}
14
-		else {
13
+		} else {
15 14
 			$contenu_class->getHeadPage($_POST['id_page']);
16 15
 			$contenu_class->getContenuPage($_POST['id_page']);
17 16
 
@@ -19,8 +18,7 @@  discard block
 block discarded – undo
19 18
 				$balise_title = $_POST['balise_title'];
20 19
 				$url = $_POST['url'];
21 20
 				$meta_description = $_POST['meta_description'];
22
-			}
23
-			else {
21
+			} else {
24 22
 				$balise_title = $contenu_class->getBaliseTitle();
25 23
 				$url = $contenu_class->getUrl();
26 24
 				$meta_description = $contenu_class->getMetaDescription();
@@ -29,8 +27,7 @@  discard block
 block discarded – undo
29 27
 			if ($droit_acces->getModifNavigation() != 0) {
30 28
 				$titre_page = $_POST['titre_page'];
31 29
 				$parent = $_POST['parent_texte'];
32
-			}
33
-			else {
30
+			} else {
34 31
 				$titre_page = $contenu_class->getTitre();
35 32
 				$parent = $contenu_class->getParent();
36 33
 			}
@@ -41,8 +38,7 @@  discard block
 block discarded – undo
41 38
 		if ((\core\App::getErreur() !== true) && ($gestion_contenu->getErreur() !== true)) {
42 39
 			\core\HTML\flashmessage\FlashMessage::setFlash("La page ".$_POST['titre_page']." a été mise à jour", "success");
43 40
 		}
44
-	}
45
-	else {
41
+	} else {
46 42
 		\core\HTML\flashmessage\FlashMessage::setFlash("Vous n'avez pas l'autorisation de modifier cette page !");
47 43
 	}
48 44
 
Please login to merge, or discard this patch.
core/admin/contenus/GestionContenus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 		}
39 39
 
40 40
 		public function getBlocEditable($id_page_courante) {
41
-			$dbc= App::getDb();
41
+			$dbc = App::getDb();
42 42
 			$bloc_editable = 0;
43 43
 
44 44
 			$query = $dbc->select("bloc_editable")->from("page")->where("ID_page", "=", $id_page_courante)->get();
Please login to merge, or discard this patch.