Update functions.php

corrected cml_get_language_by_post_id function