Ejemplo n.º 1
0
function getPreinstallXmlLang($object, $field)
{
    if (ToolsCore::property_exists($object, $field . '_' . ((int) $_GET['language'] + 1))) {
        return str_replace(array('!|', '|!'), array('<', '>'), trim($object->{$field . '_' . ((int) $_GET['language'] + 1)}));
    }
    if (ToolsCore::property_exists($object, $field . '_1')) {
        return str_replace(array('!|', '|!'), array('<', '>'), trim($object->{$field . '_1'}));
    }
    return '';
}