PluginProbe
Welcart e-Commerce / 1.3.4
Welcart e-Commerce v1.3.4
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / functions / included_first.php

included_first.php in Welcart e-Commerce 1.3.4, at functions/included_first.php

20 lines 735 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Functions that should be included first
4 */
5 function usces_filter_locale($locale){
6 if( !is_admin()
7 || ( isset($_POST['action']) && isset($_POST['mode']) && 'order_item_ajax' == $_POST['action'] && in_array($_POST['mode'], array('completionMail', 'orderConfirmMail', 'changeConfirmMail', 'receiptConfirmMail', 'mitumoriConfirmMail', 'cancelConfirmMail', 'otherConfirmMail')))
8 || ( isset($_REQUEST['order_action']) && 'pdfout' == $_REQUEST['order_action'] )
9 ){
10 $usces_options = get_option('usces');
11 if( isset($usces_options['system']['front_lang']) && !empty($usces_options['system']['front_lang']) ){
12 return $usces_options['system']['front_lang'];
13 }else{
14 return $locale;
15 }
16 }else{
17 return $locale;
18 }
19 }
20 ?>