@@ 582-593 (lines=12) @@ | ||
579 | return tep_session_is_registered('OSCOM_Braintree_Alerts'); |
|
580 | } |
|
581 | ||
582 | function addAlert($message, $type) { |
|
583 | global $OSCOM_Braintree_Alerts; |
|
584 | ||
585 | if ( in_array($type, array('error', 'warning', 'success')) ) { |
|
586 | if ( !tep_session_is_registered('OSCOM_Braintree_Alerts') ) { |
|
587 | $OSCOM_Braintree_Alerts = array(); |
|
588 | tep_session_register('OSCOM_Braintree_Alerts'); |
|
589 | } |
|
590 | ||
591 | $OSCOM_Braintree_Alerts[$type][] = $message; |
|
592 | } |
|
593 | } |
|
594 | ||
595 | function getAlerts() { |
|
596 | global $OSCOM_Braintree_Alerts; |
@@ 636-647 (lines=12) @@ | ||
633 | return tep_session_is_registered('OSCOM_PayPal_Alerts'); |
|
634 | } |
|
635 | ||
636 | function addAlert($message, $type) { |
|
637 | global $OSCOM_PayPal_Alerts; |
|
638 | ||
639 | if ( in_array($type, array('error', 'warning', 'success')) ) { |
|
640 | if ( !tep_session_is_registered('OSCOM_PayPal_Alerts') ) { |
|
641 | $OSCOM_PayPal_Alerts = array(); |
|
642 | tep_session_register('OSCOM_PayPal_Alerts'); |
|
643 | } |
|
644 | ||
645 | $OSCOM_PayPal_Alerts[$type][] = $message; |
|
646 | } |
|
647 | } |
|
648 | ||
649 | function getAlerts() { |
|
650 | global $OSCOM_PayPal_Alerts; |