<?php
/**
 * Module: Events Made Easy
 *
 * Converted from: Events Made Easy & qTranslate-X (https://wordpress.org/plugins/events-made-easy-qtranslate-x/)
 * @author: johnclause, liedekef
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

add_filter( 'qtranslate_compatibility', 'qtranxf_eme_qtrans_compatibility' );
function qtranxf_eme_qtrans_compatibility( $compatibility ) {
    return true;
}

function qtranxf_eme_init_language( $url_info ) {
    if ( ! $url_info['doing_front_end'] ) {
        require_once( dirname( __FILE__ ) . "/qeme-admin.php" );
    }
}

add_action( 'qtranslate_init_language', 'qtranxf_eme_init_language' );
