Index: trunk/extensions/DonationInterface/gateway_common/gateway.adapter.php |
— | — | @@ -1676,34 +1676,7 @@ |
1677 | 1677 | */ |
1678 | 1678 | public function getTransactionDataLanguage() { |
1679 | 1679 | |
1680 | | - $data = $this->getTransactionData(); |
1681 | | - |
1682 | | - $return = false; |
1683 | | - |
1684 | | - // Check for language in $data |
1685 | | - if ( is_array( $data ) ) { |
1686 | | - if ( array_key_exists( 'language', $data ) ) { |
1687 | | - $return = $data['language']; |
1688 | | - } |
1689 | | - } |
1690 | | - |
1691 | | - // Check for language in $data['ORDER']['LANGUAGECODE'] |
1692 | | - if ( empty( $return ) && array_key_exists( 'ORDER', $data ) ) { |
1693 | | - |
1694 | | - if ( array_key_exists( 'LANGUAGECODE', $data['ORDER'] ) ) { |
1695 | | - $return = $data['ORDER']['LANGUAGECODE']; |
1696 | | - } |
1697 | | - } |
1698 | | - |
1699 | | - // Check for language in $data['PAYMENT']['LANGUAGECODE'] |
1700 | | - if ( empty( $return ) && array_key_exists( 'PAYMENT', $data ) ) { |
1701 | | - |
1702 | | - if ( array_key_exists( 'LANGUAGECODE', $data['PAYMENT'] ) ) { |
1703 | | - $return = $data['PAYMENT']['LANGUAGECODE']; |
1704 | | - } |
1705 | | - } |
1706 | | - |
1707 | | - return $return; |
| 1680 | + return $this->getData_Raw( 'language' ); |
1708 | 1681 | } |
1709 | 1682 | |
1710 | 1683 | /** |