Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
On peut specifier le format html ou pdf du recu dans l'url action
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerdic committed Jun 4, 2014
1 parent 9786de0 commit 0a257e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions action/generer_recu_souscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ function action_generer_recu_souscription_dist($id_souscription = null, $annee=n
$lowsec = souscription_hash_lowsec($id_souscription, $annee);
}

// PDF ou HTML ? si le plugin SPIPDF est la on genere un recu en PDF
$format = "html";
if (test_plugin_actif("spipdf")){
$format = "pdf";
$format = _request('format');
if (!in_array($format,array('html','pdf'))){
// PDF ou HTML ? si le plugin SPIPDF est la on genere un recu en PDF
$format = "html";
if (test_plugin_actif("spipdf")){
$format = "pdf";
}
}

$numero = souscription_numero_recu($id_souscription,$annee);
Expand Down
2 changes: 1 addition & 1 deletion paquet.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<paquet prefix="souscription"
categorie="communication"
version="2.4.1"
version="2.4.2"
etat="test"
compatibilite="[3.0.5;3.0.*]"
logo="souscription-32.png"
Expand Down

0 comments on commit 0a257e7

Please sign in to comment.