# usc-e-shop/1.3.2/functions/included_first.php

Welcart e-Commerce, version 1.3.2. 20 lines.

- Page: https://pluginprobe.com/plugins/usc-e-shop/1.3.2/code/functions/included_first.php
- Raw: https://pluginprobe.com/plugins/usc-e-shop/1.3.2/raw/functions/included_first.php
- Modified: 2012-01-26T05:50:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/usc-e-shop/1.3.2/code/functions/included_first.php#L10-L20`.

```php
<?php
/*
 Functions that should be included first
*/
function usces_filter_locale($locale){
	if( !is_admin() 
		|| ( isset($_POST['action']) && isset($_POST['mode']) && 'order_item_ajax' == $_POST['action'] && in_array($_POST['mode'], array('completionMail', 'orderConfirmMail', 'changeConfirmMail', 'receiptConfirmMail', 'mitumoriConfirmMail', 'cancelConfirmMail', 'otherConfirmMail')))
		|| ( isset($_REQUEST['order_action']) && 'pdfout' == $_REQUEST['order_action'] )
	){
		$usces_options = get_option('usces');
		if( isset($usces_options['system']['front_lang']) && !empty($usces_options['system']['front_lang']) ){
			return $usces_options['system']['front_lang'];
		}else{
			return $locale;
		}
	}else{
		return $locale;
	}
}
?>
```
