Changeset 20292 for extensions/Piwecard/admin
- Timestamp:
- Jan 20, 2013, 6:02:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/admin/admin_management.php
r20284 r20292 134 134 } 135 135 136 $nb_ecards_valid_total = s tr_replace(array('%nb_valid%', '%nb_total%'), array($piwecard->get_nb_valid_ecard(), $piwecard->get_nb_ecard()), l10n('piwecard_nb_ecard_valid_total'));136 $nb_ecards_valid_total = sprintf(l10n('piwecard_nb_ecard_valid_total'), $piwecard->get_nb_valid_ecard(), $piwecard->get_nb_ecard()); 137 137 138 138 $query = 'SELECT COUNT(DISTINCT sender_email) AS nb_senders, COUNT(DISTINCT recipient_email) AS nb_recipients FROM '.PIWECARD_TABLE.' ORDER BY date_creation;'; … … 141 141 $nb_distinct_recipients_total = (empty($result['nb_recipients']) ? 0 : $result['nb_recipients']); 142 142 143 $nb_distinct_senders_recipients_total = s tr_replace(array('%nb_senders%', '%nb_recipients%'), array($nb_distinct_senders_total, $nb_distinct_senders_total), l10n('piwecard_nb_sender_recipient_total'));143 $nb_distinct_senders_recipients_total = sprintf(l10n('piwecard_nb_sender_recipient_total'), $nb_distinct_senders_total, $nb_distinct_recipients_total); 144 144 145 145 $template->assign('nb_ecards_valid_total', $nb_ecards_valid_total);
Note: See TracChangeset
for help on using the changeset viewer.