Skip to content

Commit

Permalink
#35 : Possibiliter de sauvegarder une nouvelle balise CMS sans interv…
Browse files Browse the repository at this point in the history
…ention base
  • Loading branch information
oceanBigOne committed Mar 15, 2017
1 parent 4077214 commit 14ce7a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pages/admin/cms/save.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@
$oCms->setContent($_POST["content"]);
$oCms->setDate_amended(date("Y-m-d H:i:s"));
$oCms->save();

}else{
$oCms= new Cms();
$oCms->setRef($_POST["ref"]);
$oCms->setContent($_POST["content"]);
$oCms->setDate_amended(date("Y-m-d H:i:s"));
$oCms->setDate_created(date("Y-m-d H:i:s"));
$oCms->save();
}
}

Expand Down

0 comments on commit 14ce7a7

Please sign in to comment.