Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function qtrans_useCurrentLanguageIfNotFoundShowAvailable($content) {
- global $q_config;
- $result = qtrans_use($q_config['language'], $content, true);
- $source = strtolower($result);
- $checker = str_replace(array('<br/>', '<br>', '<br />', '<p>', '</p>'), '', $source);
- $resultChecker = trim($checker);
- if ($resultChecker == "") {
- $result = qtrans_use("en", $content, true);
- }
- return $result;
- }
Advertisement
Add Comment
Please, Sign In to add comment