diff --git a/htdocs/postnuke/articles/fiche.php b/htdocs/postnuke/articles/fiche.php index 3524726cda7..aacb9d5444c 100644 --- a/htdocs/postnuke/articles/fiche.php +++ b/htdocs/postnuke/articles/fiche.php @@ -28,19 +28,13 @@ $db = new Db(); if ($action == 'update' && !$cancel) { - $livre = new Livre($db); + $article = new pnArticle($db); - $livre->titre = $titre; - $livre->ref = $ref; - $livre->price = $price; - $livre->annee = $annee; - $livre->editeurid = $editeurid; - $livre->description = $desc; - - if ($livre->update($id, $user)) + $article->titre = $HTTP_POST_VARS["titre"]; + $article->body = $HTTP_POST_VARS["body"]; + if ($article->update($id, $user)) { - $result = $livre->fetch($id); - $livre->updateosc($user); + } else { @@ -48,14 +42,6 @@ if ($action == 'update' && !$cancel) } } -if ($action == 'updateosc') -{ - $livre = new Livre($db); - $result = $livre->fetch($id); - - $livre->updateosc($user); -} - /* * * @@ -80,47 +66,24 @@ if ($id) if ($action == 'edit') { - print '