MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/lead_cafsinfotech_in/public/legacy/include/Smarty/plugins/function.convert_link.php
<?php

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Smarty {convert_link} function plugin
 *
 * Smarty plugin
 * -------------------------------------------------------------
 * File:     function.convert_link.php
 * Type:     function<br>
 * Name:     convert_link<br>
 * Purpose:  convert link to new UI link introduced in 8.0
 * -------------------------------------------------------------
 * @param $params array - its structure is
 *     'link' => link to convert
 * @param $smarty
 * @param Smarty
 * @return string
 */
function smarty_function_convert_link($params, &$smarty)
{
    if (empty($params['link'])) {
        return '';
    }

    require_once 'include/portability/RouteConverter.php';
    $routeConverter = new RouteConverter();

    return $routeConverter->generateUiLink($params['link']);
}
?>